You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
ããã¾ã§ã® Go ã® archive/zip ã«ã¯åé¡ããããzip ãã¡ã¤ã«ã«æ ¼ç´ããããã¡ã¤ã«ã®ã¿ã¤ã ã¾ã¼ã³ã UTC ã«ãªã£ã¦ããçºãæ¥æ¬ã§ããã°9æéããã¦ãã¾ãã¨ããåé¡ããã£ãã ãã㯠zip ã® NTFS/UNIX/ExtendedTS extra fields ãæ±ã£ã¦ããªãã£ãã®ãåé¡ã以åä¸åº¦åã®ãããããã¼ã¸ããããåé¡ããããªãã¼ãããã¦ãã¾ã£ã¦ããã archive/zip: add FileHeader.Modified field - golang/go@6e8894d - GitHub The ModifiedTime and ModifiedDate fields are not expressive enough for many of the time extensions t... https://github.com/golang/go/comm
ãã¶ãéå¼ããç¡ãããæ¢ããªãã®ããªã¨æã£ãã®ã§ path/filepath ã«ã©ãããæ©è½ãããã®ãæ¸ãã¦ããã filepath.Join 使ã£ã¦ä¸ããã / âGoè¨èªã§ã¯ãã¹ãã©ãããã©ã¼ã çã«ãã¹ã¨ãã¡ã¤ã«åãçµåããã«ã¯ï¼ | éITä¼æ¥ã«å¤ããä¸å¹´ãµã©ãªã¼ãã³ã®ITæ¥è¨â https://t.co/ehXCf0u8X9 â èªç§°mattn (@mattn_jp) October 24, 2017 ãã¹ãããã¡ã¤ã«åãå¾ã filepath.Base ã使ãã package main import ( "path/filepath" ) func main() { println(filepath.Base("C:/foo/bar")) } ãã®å ´å bar ã表示ãããã ãã¹ãããã£ã¬ã¯ããªåãå¾ã filepath.Dir ã使ãã package main impor
ããªãã¿C/C++ãã使ããJSONã©ã¤ãã©ãªãç´¹ä»ããã³ã¼ãã¼ãã¾ãã¯éå»ã®ã¾ã¨ãã æéã¨è¨ããã JSON ãã¼ãµãrapidjsonããæ¬å½ã«çéãªã®ã試ãã¦ã¿ãã Cè¨èªãã使ããJSONãã¼ãµãparson ãæã£ã以ä¸ã«è¯ãä»äºããã¦ããã åãboost::asioã¨boost::property_treeã使ãHTTPãããã·ç°å¢ä¸ã§éåæã«Google Search APIããæ¤ç´¢ããã¾ã§ã«ãã£ãããã£ãä¸ã¤ã®äºã Cè¨èªãã使ããJSONãã¼ãµãJSMNã試ãã¦ã¿ãã ä½ãè¦ãã«C++ã§jsonãã¼ãµãæ¸ããã試ãã¦ã¿ãã ããããã¡ã¤ã«ã ãã§C++ãã使ããJSONãã¼ãµãpicojsonããåãï¼ Cè¨èªãã使ããJSONãã¼ãµãjansson ãã¨ã¦ãç´æçã§è¯ã Big Sky :: C++ 㧠STL ãã¬ã³ããªã«æ±ããJSONãã¼ãµãjson.hppã çµ
ä»æ¥ãããªãã¤ã¼ããããã @mattn_jp ãããããã°ãã¿ã¼ãªçç±ãm(_ _)m åå空éãçãããä½æ³ãªã®ã¯ãããã®ã§ããã¡ã¢ãªãGCãã³ã³ãã¤ã©ãªã©ãã©ã®è¾ºã«åªããæãã§ããï¼ â Ryuji IWATA (@qt_luigi) April 5, 2017 qt_luigi ããããã©ããã¦ããèãããã®ã§èª¬æãããã¨æãã¾ãã golang ã§ã¯å®£è¨ããä½ç½®ã§åãã¦èªåå¤æ°ã¨ãã¦ã¡ã¢ãªã確ä¿ãããã¼ãã¯ãªã¢ããã¾ãã for i := 0; i < b.N; i++ { var foo Foo bar, err := doSomething() if err != nil { continue } foo.v = bar fmt.Fprintln(ioutil.Discard, foo) } ãªã®ã§ä¾ãã°ãã®æ§ãªã³ã¼ã㧠doSomething() ã err ãè¿ããå ´åã
以ä¸ã®è¨äºã¯ Java ã«ã¤ãã¦è§¦ãã¦ãã¾ãããJava ã dis ã£ã¦ãã訳ã§ãããã¾ããããåé·ã«è¦ããä¾ãæå³çã«ä½¿ã£ã¦ãã¾ãã æè¿ Twitter 㧠golang ã« Generics ãç¡ãäºã«ã¤ãã¦ããã¶ãã¨çãä¸ãã£ãã®ã§ãããåã®æè¦ããã®ããã°ã«ãæ¸ãã¦ãããã¨æãã¾ãã golang ã«å¤ç¸ãç¡ãã®ã¯ã¢ã¬ã ã¨ãéçºè ã®æ æ ¢ã ã¿ãããªè©±ã¯ã ãããä»ã®è¨èªãè¦ãã人ããåºãææ³ã§ãéçåä»è¨èªã§ãã golang ãè¦ãã¨ç¢ºãã«ããè¦ãããããããªãããã golang 㯠Java ãä»ã®è¨èªã¨éã£ã¦ Duck Type ãæ¡ç¨ãã¦ããã â Vimè¸äºº (@mattn_jp) March 7, 2017 ã¹ã¯ãªããè¨èªã®å¤ãã«å¤ç¸ãæ±ããããªãã®ã¨åãæ§ã« golang ãæ·±ã触ã人éããå¤ç¸ã欲ããã¨ããæè¦ãããã»ã©åºãªãã®ã¯ golang ã®åã Duck
ããã«ã¡ããVim 使ã£ã¦ã¾ããï¼ä½¿ã£ã¦ãªãï¼ä½¿ãã¾ãããã 2015å¹´ã«ãªã£ã¦ã Vim 使ã£ã¦ã人ããã®ï¼ãªãã¦äººããã¾ãããããèãã¦ä¸ãããVim ã ãã§åºçç©ãä½åããããã§ããï¼Vim script 㯠GitHub ä¸ã 㨠Go ã R ã¨åãããã人æ°ã®ããããã°ã©ãã³ã°è¨èªãªãã§ããï¼(åºå±: The RedMonk Programming Language Rankings: June 2015 â tecosystems) æ°ããããã¹ãã¨ãã£ã¿ãã©ãã©ãåºã¦ãã¦ãã¤ã±ã¦ãªãããã¹ãã¨ãã£ã¿ã¯ã©ãã©ãæ¶ããã®ã«ãVim ã¯æªã ã«äººæ°ãããã¨ãã£ã¿ãªãã§ããï¼Vim ããããªã«æ ¹å¼·ãã®ã«ã¯çç±ãããã¨æãã¾ãããï¼ä½¿ãã®é£ãã㦠Vim ããã¦ãã¾ã£ããã©ããããã¡ã©ãã£ã¬ã³ã¸ãããã¨æãã¾ãããï¼æ®æ®µä½¿ã£ã¦ã Vim ããã£ã¨ä¾¿å©ã«ãããã¨æãã¾ãããï¼ ä»ãå°é²åã
ã¡ãã£ã¨æ¸ãç©ãããç¨äºããã£ã¦ãmarkdown ã§æ¸ããªãããããªãã£ããã§ãã ä½è¨ãªã¤ã³ã¹ãã¼ã«ã®æéãä¸è¦ã§ ä½è¨ãªè¨å®ã¯ä¸åä¸è¦ã§ 使ãåæ㯠Linux ã Windows å ¨ã¦åã㧠åºæ¥ãã° Markdown ä¿åãããèªåæ´æ°ãã㦠GitHub Flavour Markdown ã§ã³ã¼ããã¤ã©ã¤ãã GitHub Flavour Markdown ã§ãã¼ãã«è¡¨è¨ ããããã®ã欲ããã¦ãããã¢ããªã±ã¼ã·ã§ã³ãè¦ã¤ãããã ãã©å¤é¨ã® JavaScript ã使ã£ã¦ãä¸ã«ãã®ãªã½ã¼ã¹URLãç¡ããªãåããªããªã£ã¦ã¦å°ã£ãã®ã§ä½ã£ãã ä»å¾ãããããäºããã ããããèªåç¨ã«ä½ã£ã¦ããã¹ãã ã¨æã£ããæ¸ãç©ãããäºå®ã ã£ãã®ã«æ°ä»ãããä½ã£ã¦ãã®ã§ãããããªããåã®ããã§ã¯ãªãã mattn/mkup - GitHub README.md mkup Portable Markd
ããªãã¿C/C++ãã使ããJSONã©ã¤ãã©ãªãç´¹ä»ããã³ã¼ãã¼ãã¾ãã¯éå»ã®ã¾ã¨ãã ããããã¡ã¤ã«ã ãã§C++ãã使ããJSONãã¼ãµãpicojsonããåãï¼ ä½ãè¦ãã«C++ã§jsonãã¼ãµãæ¸ããã試ãã¦ã¿ãã Cè¨èªãã使ããJSONãã¼ãµãJSMNã試ãã¦ã¿ãã åãboost::asioã¨boost::property_treeã使ãHTTPãããã·ç°å¢ä¸ã§éåæã«Google Search APIããæ¤ç´¢ããã¾ã§ã«ãã£ãããã£ãä¸ã¤ã®äºã Cè¨èªãã使ããJSONãã¼ãµãparson ãæã£ã以ä¸ã«è¯ãä»äºããã¦ããã æéã¨è¨ããã JSON ãã¼ãµãrapidjsonããæ¬å½ã«çéãªã®ã試ãã¦ã¿ãã Cè¨èªãã使ããJSONãã¼ãµãjansson ãã¨ã¦ãç´æçã§è¯ã C++ ã® JSON ã©ã¤ãã©ãª json11 㯠initializer_list ã綺éºã å
ãã®æç« ã¯ãhttp://yannesposito.com/Scratch/en/blog/Vim-as-IDE/ ã§æ²è¼ããã¦ãããVim as IDEãã®ç¿»è¨³æã§ãã æå ã®å ¨ã¦ã¯ã®çè ã«ããç©ã§ããã訳æã®å 容ã«ã¤ãã¦ã¯ç§ã«ããç©ã¨ãªãã¾ããæ訳ãè¥å¹²å ¥ã£ã¦ãã¾ããééãçããã°ãé£çµ¡ä¸ããã Vim as IDE tl;dr: å¦ä½ã« Vim ãå¹çã®è¯ã IDE ã¨ãã¦ä½¿ãããªãã Learn Vim Progressively (訳è 注: æ¥æ¬èªè¨³)ã§ã¯ Vim ãå¦ä½ã«ããã¹ãç·¨éã«åªãããã¤ãã¡ã¤ã«ãæ縦ã§ããå大ãªããã¹ãã¨ãã£ã¿ã§ãããã«ã¤ãã¦ç¤ºããããã®çãè¨äºã§ã¯ãç§ãå¦ä½ã«ã㦠Vim ã IDE ã¨ãã¦ä½¿ã£ã¦ãããã«ã¤ãã¦è¦ãäºãåºæ¥ãã ãããããã主ã«å¹¾ã¤ãã®ç´ æ´ããããã©ã°ã¤ã³ã使ãäºã«ããã 1. Vim Plugin Manager Vim ã®ãã©ã°ã¤ã³
« C++ ã® JSON ã©ã¤ãã©ãª json11 㯠initializer_list ã綺éºã | Main | ã便å©ãã¨ãæ極ã¾ã£ã¦ãã¾ãããã ãã§ããã°ã©ã ãæ¸ããæ¥æ¬èªããã°ã©ãã³ã°è¨èªãããã²ãããä½ã£ãã » ShellScript - jqãxmllintã³ãã³ãããããªãã俺ã¯ãã¤ãã好ãã ãã - Qiita UNIXå²å¦ã®ä¸ã¤ã¨ãã¦ããå¼ç¨ããããã¤ã¯ã»ã¬ã³ã«ã¼ãºã®æ義㫠1.å°ãããã®ã¯ç¾ããã 2.1ã¤ã®ããã°ã©ã ã«ã¯1ã¤ã®ãã¨ããã¾ãããããã ã¨ããã®ãããããã¾ããããã§ãã¦ããªã http://qiita.com/richmikan@github/items/e051b5d882c3dd2a39c6 æã® UNIX ã§æ±ã£ã¦ãããã¼ã¿ã¯ã ãããè¡æåã§ããããã㦠UNIX ã¯è¡æåãã¼ã¿ãæ±ãçºã® OS ã¨è¨ã£ã¦ãéè¨ã§ã¯ããã¾ããã§ããã ããã J
å¤ã ããæã話ããããï¼ #include <cstdio> #include <math.h> class C { public: C() {} C(double) { printf("hello world\n"); } }; int main(int argc, char** argv) { C(NAN); return 0; } åã¯ä»æ¥... ãããªã³ã¼ããã³ã³ãã¤ã«ãããã ...ãgcc ã§ã³ã³ãã¤ã«ãã¦å®è¡ãããã ...ã hello world æå¾ éãã ã£ãã åã¯å®å¿ãããããä»åº¦ã¯ MSVC ã§ãã«ããããã ...ã å®è¡ããã¨... ä½ãåºãªã... åã¯æããªã£ãã ä½ãªãã ï¼ä½ãªãã ï¼NaN ãªãã ã¼ã¼ã¼ï¼ åã® C++ 人çã¯ãªãã ã£ãã®ã...ãåã¯ç ã«ä¾µããã¦ããã«éããªã...ã æããªããããããã¬ã§è¿½ã£ããã ... ããã¦ã¹ãããã¤ã³ãã... ãã£
ã©ããã¦ãé«éãªWeb ãµã¼ããæ¸ããããªã£ãã®ã§ joyent ã® libuv 㨠http-parser (nodejs ãå é¨ã§ä½¿ã£ã¦ããã©ã¤ãã©ãª)ã使ã£ã¦Web ãµã¼ããæ¸ãã¦ã¿ãã mattn/http-server - GitHub https://github.com/mattn/http-server I/O ã¯å ¨ã¦éåæã§è¡ãããããã³ã°ããªãä½ãã¨ãã¾ãããããã§çµ¶å¯¾éããªãã¨ã¯è¨ããªããã©ãå°ãªãã¨ãã¹ã±ã¼ã«ã¯ããããããªããã¨æãã¾ãã Date ãããã¨ãã65536 ãã¤ã以ä¸ã® POST ãã¤ãã¼ãã¨ãè²ã çãã¦ãã®ã§ããã³ãããªãã£é«ãã§ãããã²ã¨ã¾ã GET ã§ãã¡ã¤ã«ã®ãµã¼ããåºæ¥ãç¶æ ã«ã¯ããã®ã§ãã³ããã¼ã¯ãåã£ã¦ã¿ã¾ããã # nginx $ ab -k -c 10 -n 10000 http://127.0.0.1/ # http-server
golang ãæä¾ããã¤ã³ã¿ãã§ã¼ã¹ã®ä¸ã§ä»£è¡¨çãªç©ã®ä½¿ãæ¹ãã¾ã¨ãã¦ã¿ãã io.Reader type Reader interface { Read(p []byte) (n int, err error) } ãåã io.Readerããã®ã·ã°ããã£ã® Read ãå®è£ ãã¦ããã° golang ã®ããã¨ããããå ¥åæ©è½ã«å¯¾ãã¦èªåã®ã³ã¼ããæä¾ããäºãåºæ¥ãã ä¾ãã°æ°¸é ã«ããã£ã±ããã¨è¨ãç¶ãã Reader ã ã¨ä»¥ä¸ã®æ§ãªå®è£ ã«ãªãã package main import ( "io" "os" ) var text = []rune("ãã£ã±ã") type OppaiReader struct { n int } func (r *OppaiReader) Read(p []byte) (int, error) { in := len(p) nw := 0 for i
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}