Skip to content

Instantly share code, notes, and snippets.

View yymm's full-sized avatar
☁️

yuya yano yymm

☁️
View GitHub Profile
@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'
(function (win, doc, Class) {
'use strict';
// Namespace
var DelaunayTriangle = {};
var DT = DelaunayTriangle;
/*! -----------------------------------------------------
ドロネー三角形分割のためのユーティリティ関数
@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 / 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();
};
/* 中白 */
import markdown
from markdown import Extension
from markdown.postprocessors import Postprocessor
import re
import requests
GIST_RE = r"^http(?:s)?://gist\.github\.com/.+$"
class EmbedExtension(Extension):
def extendMarkdown(self, md, md_globals):
@yymm
yymm / virtual_matrix_diff.py
Created November 19, 2015 05:20
virtual_matrix_diff.py
# -*- coding: utf-8 -*-
import sys
import math
def getcolor(colorname): # {{{
colors = {
'clear': '\033[0m',
'black': '\033[30m',
'red': '\033[31m',
'green': '\033[32m',
@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;