Skip to content

Instantly share code, notes, and snippets.

@jedschneider
jedschneider / gh-pages-tips.md
Created June 7, 2012 17:59
github pages tips for jekyll wiki

Working With Github Pages

The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.

Gitignore

Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.

Working With Code Partials

@to
to / gist:2913882
Created June 12, 2012 01:40
Window Size, Media Query
<!doctype html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0">
</head>
<body>
<pre id="out"></pre>
</body>
<script>
function checkSizes(){
@haseharu
haseharu / gist:3203923
Created July 30, 2012 03:14
requring jQuery for Greasemonkey
// ==UserScript==
// @name jQuery
// @namespace jQuery
// @include http://ajax.googleapis.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js
// @resource jQueryUICSS http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/redmond/jquery-ui.css
// ==/UserScript==
var newCSS = GM_getResourceText ("jQueryUICSS");
@y-yu
y-yu / inherit.md
Created August 9, 2012 06:57
JavaScriptの継承について

JavaScriptの継承について

全然理解出来てなかったので調べてみた。

経緯

function f () {
	// Class
}
@keijiro
keijiro / unity-animated-gif.md
Created August 12, 2012 08:48
Unity の画面を Animated GIF に変換して Tumblr にアップする

Unity の画面を Animated GIF に変換して Tumblr にアップする

超ニッチですが、メモとして。

Tumblr 側の制限

GIF ファイルの容量を 1MB 未満にしないと再変換されてしまう。よって、いかに容量を小さくするかというのが焦点になる。

  • 画像サイズを小さくする。
  • 色数を少なくする。
@Mithrandir0x
Mithrandir0x / gist:3639232
Created September 5, 2012 16:15
Difference between Service, Factory and Provider in AngularJS
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
@tooooooooomy
tooooooooomy / user_timeline.pl
Created October 12, 2012 07:43 — forked from meso-cacase/user_timeline.pl
Twitterで指定ユーザのツイートを取得する
#!/usr/bin/perl
# Twitterで特定ユーザのツイートを取得し、タブ区切りテキスト形式で出力する
#
# Usage: ./user_timeline.pl [-u USER_ID] [-s SINCE_ID] [-m MAX_ID]
#
# Options:
# -u USER_ID, --user=USER_ID
# USER_ID(数値またはscreen name)で指定したユーザのツイートを取得する
# 省略時は、OAuthで認証した場合は自分自身のツイートを取得する
@mala
mala / gist:4129717
Created November 22, 2012 06:46
NICOSパスワード8文字切り詰め制限祭りまとめ
平文でパスワード保存されていた?と推測する奴は頭がおかしいのでエンジニアやめろ。
----
まず事実関係
MUFGは、ID登録及び、ログインの際に、パスワード規定文字数を超えて「入力することができませんでした」と主張している。
http://www.cr.mufg.jp/corporate/info/pdf/2012/121120_01.pdf
リニューアル前の直近のログインフォームでは、password入力のinput要素に各提携先に応じたmaxlengthが設定されていて、
@mattintosh4
mattintosh4 / 0-README.md
Last active June 4, 2022 21:41
Automator 用シェルクリプト集 その1

Shell script for Automator Part.1

Automator のシェルスクリプトアクションで使えるサンプル集です。「アプリケーション」や「サービス」を作成するときにどうぞ。


入力の種類について