This file contains 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
open System | |
open System.Windows | |
open System.Windows.Controls | |
open System.Windows.Media.Imaging | |
open System.Windows.Media.Effects | |
open System.Diagnostics | |
open System.Collections.Generic | |
let fillBmp pixels color = | |
Array.fill pixels 0 pixels.Length color |
This file contains 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
// http://blogs.msdn.com/b/hiroyuk/archive/2010/09/28/10068491.aspx | |
open System | |
open System.Windows | |
open System.Windows.Controls | |
open System.Windows.Media.Imaging | |
open System.Windows.Media.Effects | |
type MyEffect() as this = |
This file contains 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
/* Copyright 2011 by Yasuhiro Matsumoto | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright notice, | |
* this list of conditions and the following disclaimer in the documentation | |
* and/or other materials provided with the distribution. | |
* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
This file contains 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
import sys | |
import time | |
import ctypes | |
import subprocess | |
CTRL_C_EVENT = 0 | |
CTRL_BREAK_EVENT = 1 | |
if len(sys.argv) == 1: | |
for i in range(2): |
This file contains 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
[<ReflectedDefinition>] | |
module Program | |
open FunScript | |
open FunScript.TypeScript | |
open FunScript.Compiler | |
// Imports | |
// Note: this path is relative to the directory you launched mono / monodevelop. | |
type ts = Api< @"../Typings/node-0.8.d.ts" > |
This file contains 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
;; moved to https://github.com/chikatoike/config/blob/master/.emacs.d/init.el |
This file contains 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
" moved to https://github.com/chikatoike/config/blob/master/.vimrc |
This file contains 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
command! -nargs=* InnerFunction | |
\ let l:__func = { | |
\ 'type': 'function', | |
\ 'name': matchstr(<q-args>, '^\s*\([^(]\+\)'), | |
\ 'statement': [ | |
\ 'function! <args>', | |
\ ' call extend(l:, get(l:, "self", {}))', | |
\ ], | |
\ } |
This file contains 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
if !exists('g:auplugin_disable') | |
let g:auplugin_disable = 0 | |
endif | |
command! -nargs=1 -complete=customlist,auplugin#_complete AuLoad call s:load_plugin(<q-args>) | |
function! auplugin#_complete(arglead, cmdline, cursorpos)"{{{ | |
let list = split(globpath(&runtimepath, 'auplugin/*'), '\n') | |
let list += split(globpath(&runtimepath, 'bundle/*'), '\n') | |
let rtp = map(split(&runtimepath, ','), 'expand(v:val)') |
This file contains 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_file_reload.py | |
import os | |
import time | |
import sublime | |
import sublime_plugin | |
class PackageFileReloader(sublime_plugin.EventListener): | |
"""Auto reload on save package files. """ | |
def on_post_save(self, view): |
NewerOlder