Skip to content

Instantly share code, notes, and snippets.

" Normal Setting
set number
set title
set nocompatible
set ruler
set showmatch
set matchtime=1
set wildmenu
set display=lastline
set wrap
@sh4869
sh4869 / test.js
Created September 30, 2016 09:56
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)
}
)
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,,,,
6065966,11379666,0,Bitter Sugar,,桂木 春,https://source.secure.pixiv.net/common/images/novel_thumb/novel_thumb_9_s.jpg,,,https://source.secure.pixiv.net/common/images/novel_thumb/novel_thumb_9_s.jpg,,,2015-11-
@sh4869
sh4869 / servo.ino
Last active August 31, 2016 07:27
3つのサーボモータを同時に動かす
#include<Servo.h>
Servo myservo;
Servo myservo2;
Servo myservo3;
int pos = 0;
int flag = 0;
int sw1 = 1;
@sh4869
sh4869 / gulpfile.js
Created August 29, 2016 18:11
Gulpでjsonファイルをいい感じに読み込みたい
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){
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
949438177
#include <stdio.h>
#include <stdlib.h>
#include <linux/input.h>
#include <unistd.h>
int main(void)
{
for (;;) {
struct input_event event;
@sh4869
sh4869 / gulpfile.js
Last active November 17, 2015 14:03
Gulp file for haml in Windows; please see http://sh4869.hatenablog.com/entry/2015/11/17/200237
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 November 19, 2015 13:35
診断メーカーをhubotでやる
# Description:
# Shindan From Hubot
#
# Dependencies:
# "request"
# "cheerio"
#
# Configuration:
# None
#

##コード

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() {