This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file ./backtrace | |
| set disassembly-flavor att | |
| break main | |
| commands | |
| echo +++++This is some text\n | |
| end | |
| run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CFLAGS = -g -Wall -D_DEBUG_ -D_GNU_SOURCE $(ARCH) -Ilib/ -Isrc/ | |
| LIBS= $(SOCK) -lm -lpthread | |
| PFLAGS= -follow-child-processes=yes -cache-dir=/tmp/${USER} | |
| PURIFY= purify ${PFLAGS} | |
| # Add any header files you've added here | |
| sr_HDRS = lib/sha1.h lib/sr_dumper.h lib/sr_if.h lib/sr_rt.h lib/sr_utils.h \ | |
| lib/vnscommand.h src/sr_arpcache.h src/sr_protocol.h src/sr_router.h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -e support emacs | |
| # --C-kinds=+l local variables | |
| ctags -e --C-kinds=+l -R */*.[ch] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gcc -m64 -std=c99 -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-qual \ | |
| -Wstrict-prototypes -Wmissing-prototypes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class RedisExample { | |
| private StringRedisTemplate redisTemplate; | |
| public void setRedisTemplate(StringRedisTemplate redisTemplate) { | |
| this.redisTemplate = redisTemplate; | |
| } | |
| private HashOperations<String, String, Long> hashOps; | |
| public void setHashOps(HashOperations<String, String, Long> hashOps) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sqoop import --connect jdbc:mysql://10.0.0.4/employees \ | |
| --table salaries \ | |
| --username bohao \ | |
| --password-file /user/bohao/pass \ | |
| --hive-import \ | |
| --hive-drop-import-delims \ | |
| --null-string '\\N' \ | |
| --null-non-string '\\N' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # global parameters | |
| g_tmp_folder="ncdc_tmp"; | |
| g_output_folder="ncdc_data"; | |
| g_remote_host="ftp.ncdc.noaa.gov"; | |
| g_remote_path="pub/data/noaa"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 给html标签加上属性data-bind-xxx | |
| * (datebox用data-bind-datebox-xxx, | |
| * checkbox用data-bind-checkbox-xxx) | |
| * 然后使用 var params = new window.Model('xxx') 就能双向绑定了 | |
| * Created by wang.bh on 2015/11/24. | |
| */ | |
| (function () { | |
| function DataBinder(object_id) { | |
| // Use a jQuery object as simple PubSub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #lang racket | |
| (require parser-tools/lex | |
| (prefix-in re- parser-tools/lex-sre) | |
| parser-tools/yacc) | |
| (provide (all-defined-out)) | |
| (define-tokens a (NUM VAR)) | |
| (define-empty-tokens b (+ - EOF LET IN)) | |
| (define-lex-trans number | |
| (syntax-rules () |