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: gulpfile.js */ | |
| var gulp = require('gulp'), | |
| less = require('gulp-less'), | |
| plumber = require('gulp-plumber'), | |
| rename = require('gulp-rename'); | |
| var minifycss = require('gulp-minify-css'); | |
| var watchPath = require('gulp-watch-path'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var gutil = require('gulp-util'); |
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
| %option noyywrap yylineno | |
| %{ | |
| #include "lang.tab.h" | |
| %} | |
| DIGIT ([0-9]) | |
| LETTER ([a-zA-Z]) | |
| %% |
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 () |
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
| #!/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
| 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
| 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
| 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
| # -e support emacs | |
| # --C-kinds=+l local variables | |
| ctags -e --C-kinds=+l -R */*.[ch] |