Skip to content

Instantly share code, notes, and snippets.

View yymm's full-sized avatar
☁️

yuya yano yymm

☁️
View GitHub Profile
@yymm
yymm / .vimperatorrc
Last active October 6, 2015 13:28
vimperator setting file
" vimperator setting
" vimp colorscheme ~/vimperator/colors
colorscheme yymm_sweets
" Title
set titlestring=Firefox
" detail = 5 lines
" set verbose=5
@yymm
yymm / gist:3063906
Created July 7, 2012 02:19
vimperator colorscheme
" ==VimperatorColorScheme==
" name: Sweets based on 'sweets_snaka'
" url : http://idita.blog11.fc2.com/blog-entry-826.html#more
" ==/VimperatorColorScheme==
hi Hint font-family: monospace; font-size: 14px; font-weight: normal; color: lightyellow; background-color: black; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding: 0px 5px 0px 5px; text-transform: uppercase;
hi HintElem background-color: MediumPurple; color: black;
hi HintActive background-color: hotpink; color: white;
" hint
@yymm
yymm / kasumi_mato.html
Created October 12, 2012 08:38
kasumi mato(Kyudo) using Canvas
<script type="text/javascript">
onload = function() {
draw0();
draw1();
draw2();
draw3();
draw4();
draw5();
};
/* 中白 */
@yymm
yymm / gist:5062712
Last active December 14, 2015 09:08
remove .pyc ワンライナー
python -c "import os;[os.remove(x) for x in os.listdir('./') if x.find('.pyc') > 0]"
@yymm
yymm / gist:5689022
Created June 1, 2013 01:57
yymm_sweets.vimp
" ==VimperatorColorScheme==
" name: Sweets based on 'yymm_sweets'
" ==/VimperatorColorScheme==
hi Hint font-family: monospace; font-size: 14px; font-weight: normal; color: lightyellow; background-color: black; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding: 0px 5px 0px 5px; text-transform: uppercase;
@yymm
yymm / gist:6805429
Last active December 24, 2015 13:29
IPython Notebook Viewer Demo
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@yymm
yymm / index.html
Created April 2, 2014 06:29
Flask(Jinja2)でstaticにMobile Boilerplate置いた場合のindex.html
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
<meta http-equiv="cleartype" content="on">
@yymm
yymm / samba4
Created October 14, 2014 07:10
Samba4/InitScript
#!/bin/bash
#
# samba4 This shell script takes care of starting and stopping
# samba4 daemons.
#
# chkconfig: - 58 74
# description: Samba 4.0 will be the next version of the Samba suite
# and incorporates all the technology found in both the Samba4 alpha
# series and the stable 3.x series. The primary additional features
# over Samba 3.6 are support for the Active Directory logon protocols
@yymm
yymm / gulpfile.coffee
Last active August 29, 2015 14:16
Gulp, browserify, reactify, coffee-reactify, notify and watchify for coffeescript
#
# Ref:
# * https://gist.github.com/vojd/a2d277bc161a2674aeaa
# * https://gist.github.com/Sigmus/9253068
#
source = require 'vinyl-source-stream'
gulp = require 'gulp'
gutil = require 'gulp-util'
browserify = require 'browserify'
@yymm
yymm / bootstrap-nodejs.sh
Last active September 15, 2016 08:56
My nodejs proj bootstraping (browserify & coffeescript (& react.js) )
# once
npm install -g electron-prebuilt gulp node-gyp
# per proj
npm install -save-dev vinyl-source-stream gulp gulp-util browserify coffee-reactify watchify gulp-notify coffee-script coffeeify
mkdir src
mkdir bundle
touch app.coffee
# shop