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
{ | |
"app/services/*.rb": { | |
"command": "service" | |
}, | |
"app/workers/*.rb": { | |
"command": "worker" | |
}, | |
"app/assets/javascripts/models/*.js.coffee": { | |
"command": "jmodel" | |
}, |
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
nkf -w --overwrite b_20140301.txt | |
grep "心筋梗塞" b_20140301.txt | cut -d "," -f 3,6 | sed -e 's/"//g' | sed -e 's/,/ /g' | less |
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
var path = require('path'); | |
var util = require('util'); | |
var through = require('through2'); | |
module.exports = function (filename) { | |
var contents = []; | |
var cwd = process.cwd(); | |
var base = cwd; | |
function transform(file, encoding, cb) { |
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
@media only screen and (max-width: 767px) { | |
/* Do whatever. */ | |
} |
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
var gulp = require('gulp'); | |
var concat = require('gulp-concat'); | |
var prefixer = require('gulp-autoprefixer'); | |
var minify = require('gulp-minify-css'); | |
var imagemin = require('gulp-imagemin'); | |
var plumber = require('gulp-plumber'); | |
gulp.task('css', function () { | |
gulp.src('htdocs/css/**/*.css') | |
.pipe(plumber()) |
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
module ApiSpec | |
attr_reader :apis | |
def api | |
@is_api = true | |
end | |
def method_added(id) | |
return unless @is_api | |
@apis ||= [] |
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
/node_modules | |
/build | |
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
namespace Foo.Bar | |
{ | |
using System; | |
public static class MonadicNullable | |
{ | |
public static TResult Match<T, TResult>(this T? nullable, Func<T, TResult> projection, Func<TResult> nullFunc) | |
where T : struct | |
{ | |
return nullable.HasValue ? projection(nullable.Value) : nullFunc(); |
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
# | |
# Place this code to your .profile, .bashrc, .bash_profile or whatever | |
# | |
program_exists () { | |
type "$1" &> /dev/null ; | |
} | |
if program_exists go; then |
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
package main | |
import ( | |
"fmt" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and | |
// a slice of URLs found on that page. | |
Fetch(url string) (body string, urls []string, err error) |