Skip to content

Instantly share code, notes, and snippets.

@dreikanter
dreikanter / Interpolator.cs
Last active April 15, 2024 14:22
Spline interpolation in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace Interpolation
{
/// <summary>
/// Spline interpolation class.
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@rummelonp
rummelonp / 0-yoru_fukurou_list_sync.md
Created December 20, 2012 17:10
Twitter Lists から YoruFukurou の抽出タブを同期するスクリプト書いた

Twitter Lists から YoruFukurou の抽出タブを同期するスクリプト書いた

なんでわざわざ抽出タブ作ってるか理由を説明するのは面倒くさいから省く
ただリストから抽出タブを作ってる人は他にもいるみたいでどうにか自動化出来ないかなと書いてみた

前提条件

  • Mac 使ってる
  • YoruFukurou 使ってる
  • Ruby が入ってる
@derekg
derekg / gist:1198576
Created September 6, 2011 18:44
Example of uploading photos to Tumblr w/ the V2 API # http://www.tumblr.com/docs/en/api/v2
import urllib,hmac,time,hashlib,base64,httplib,sys,json,urlparse
## This is just a simple example that is self contained.
## You will need to modified it to make it work
##
## creds - need to be filled out
## blognmae - needs to be defined
##
## reads in image files from the command line and posts to your blog
@koyopro
koyopro / amazon-calc.js
Last active April 2, 2022 08:23 — forked from polamjag/amazon-calc.js
Amazonで一年間に使った金額と、注文履歴のTSVを出力するブックマークレット【2015年版】
// Amazonの注文履歴をTSV形式で出力するスクリプト
//
// 2015-01-01 時点での DOM 構造に対応, GoogleCrome, Opera でテスト済。
// formatEntry関数を書き換えれば自由な書式で出力できます。
//
// 参考:
// - Amazonの注文履歴をCSV形式にして出力するスクリプト
// https://gist.github.com/arcatdmz/8500521
// - Amazon で使った金額の合計を出す奴 (2014 年バージョン)
// https://gist.github.com/polamjag/866a8af775c44b3c1a6d
@dnpp73
dnpp73 / xcode4shortcut.md
Created March 20, 2012 12:16
Xcode 4 で俺がよく使うショトカまとめ

作業エリアのショトカなど


  • 左のエリアのアレ切り替え
    Cmd + [0-7]

  • 右のエリアのアレ切り替え
    Cmd + Option + [0-2]

  • 右のエリアのアレ切り替えその二

@novi
novi / gist:1486247
Created December 16, 2011 14:31
オレオレCocoaコーディングガイドライン
@angelworm
angelworm / dmm.mk.py
Created June 21, 2013 09:12
creates many many dmm accounts
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.alert import Alert
import os
import sys
import mechanize
import random
import re
import time
(setq load-path (cons "~/.emacs.d/elisp" load-path))
(setq load-path (cons "~/.emacs.d/vendor" load-path))
(setq load-path (cons "~/.emacs.d/config" load-path))
(setq load-path (cons "~/.emacs.d/vendor/slime" load-path))
(require 'cl)
;;; フォントサイズ変更 いいのかなこれ
(set-face-font 'default "-unknown-Ubuntu Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1")
@angelworm
angelworm / tumblrnotes.py
Created March 4, 2013 16:24
Tumblrの個別ページのURLを与えると、notes(例:xxxはyyyからリブログしました)を取ってきてくれるらしい
# -*- coding: utf-8 -*-
import os
import urllib2
import urllib
import json
import logging
import time
import sys
import lxml.html as html
import re