Skip to content

Instantly share code, notes, and snippets.

View _vimrc
" Normal Setting
set number
set title
set nocompatible
set ruler
set showmatch
set matchtime=1
set wildmenu
set display=lastline
set wrap
View test.js
var fileArray = new Array();
var files = fs.readdirSync('src')
.filter((file) => { return fs.statSync('src/' + file).isDirectory()})
.filter((file) => {return file !== 'js' && file !== 'img' && file !== 'css'})
.map((dir) => fs.readdirSync('src/' + dir)
.map((file) => { return dir + '/' + file})
.forEach((files) => {
fileArray.push(files)
}
)
View lovelive.csv
We can't make this file beautiful and searchable because it's too large.
6066308,3442726,0,僕ラブ10 新刊 「白い羽のよりどころ」,,あまいろ だん,https://source.secure.pixiv.net/common/images/novel_thumb/novel_thumb_0_s.jpg,,,https://source.secure.pixiv.net/common/images/novel_thumb/novel_thumb_0_s.jpg,,,2015-11-21 22:26:28,僕らのラブライブ! ラブライブ! ことうみ,,0,0,7,"僕ラブ10で出す新刊です。<br />スペース U-46<br />値段 600円<br />詳しいことはお品書きをご覧ください。<br /><strong><a href=""http://www.pixiv.net/member_illust.php?mode=medium&amp;illust_id=53667669"">illust/53667669</a></strong><br />よろしくお願いいたします。",1,,,0,0,itumo_dan,,0,,,,
6066247,1608859,0,絆創膏,,dan,https://source.secure.pixiv.net/common/images/novel_thumb/novel_thumb_10_s.jpg,,,https://source.secure.pixiv.net/common/images/novel_thumb/novel_thumb_10_s.jpg,,,2015-11-21 22:18:42,ラブライブ! 絢瀬絵里 西木野真姫 えりまき,,2,20,74,甘い話が何かわからなくなったけど、<br />えりまきにはいちゃついてほしいから、とりあえず甘さを追及した。,1,,,3,0,gllchkk-n,,0,,,,
@sh4869
sh4869 / servo.ino
Last active Aug 31, 2016
3つのサーボモータを同時に動かす
View servo.ino
#include<Servo.h>
Servo myservo;
Servo myservo2;
Servo myservo3;
int pos = 0;
int flag = 0;
int sw1 = 1;
@sh4869
sh4869 / gulpfile.js
Created Aug 29, 2016
Gulpでjsonファイルをいい感じに読み込みたい
View gulpfile.js
var gulp = require('gulp');
var pug = require('gulp-pug');
var data = require('gulp-data');
var fs = require('fs');
// hamlタスク設定
gulp.task('pug', function() {
taskname = this.seq.slice(-1)[0]
gulp.src(['./*/*.pug','./*.pug'],{base:'./'})
.pipe(data(function(file){
View sh4869sh_20160821_1.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
949438177
View test.c
#include <stdio.h>
#include <stdlib.h>
#include <linux/input.h>
#include <unistd.h>
int main(void)
{
for (;;) {
struct input_event event;
View gulpfile.js
var gulp = require('gulp');
var haml = require('gulp-ruby-haml');
gulp.task('haml', function() {
gulp.src('./*.haml')
.pipe(haml({encodings: "UTF-8"}))
.pipe(gulp.dest('./'));
});
gulp.task('watch',function(){
@sh4869
sh4869 / shindan.coffee
Last active Nov 19, 2015
診断メーカーをhubotでやる
View shindan.coffee
# Description:
# Shindan From Hubot
#
# Dependencies:
# "request"
# "cheerio"
#
# Configuration:
# None
#
View dartlang-benchmarking.md

##コード

import 'package:benchmark_harness/benchmark_harness.dart';

// Create a new benchmark by extending BenchmarkBase.
class TemplateBenchmark extends BenchmarkBase {
	const TemplateBenchmark() : super("Template");

	static void main() {