Skip to content

Instantly share code, notes, and snippets.

@azu
azu / strftime.js
Created June 3, 2011 06:01 — forked from mjackson/strftime.js
A strftime implementation for JavaScript Date objects.
// https://gist.github.com/765200
var strftime;
strftime = (function () {
var zeropad = function (n) {
return n > 9 ? n : '0' + n;
};
var shortDays = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'];
var days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
@azu
azu / github-proxy-client.js
Created March 13, 2022 13:02 — forked from DavidWells/github-proxy-client.js
Full Github REST api in 34 lines of code
/* Ultra lightweight Github REST Client */
// original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb
const token = 'github-token-here'
const githubClient = generateAPI('https://api.github.com', {
headers: {
'User-Agent': 'xyz',
'Authorization': `bearer ${token}`
}
})
@azu
azu / wedata.js
Created June 11, 2010 12:06 — forked from youpy/gist:34615
// wedata utility for Greasemonkey
// usage
/*
var DATABASE_URL = 'http://wedata.net/databases/XXX/items.json';
var database = new Wedata.Database(DATABASE_URL);
database.get(function(items) {
items.forEach(function(item) {
// do something
});
});
(function b() {
//The file goes through heuristics that turn object properties into
//a hash table
//run with
//node --allow-natives-syntax prop_heuristics.js
//Note that even if object has fast properties, there are still 2 kinds of
//fast properties (in and out of object) and only one of them is even faster.

D3.js Advent Calendar 2013 の 19日目です。本当は5日目のD3の情報ソースを読んだ際にコメントしようと思ってたのですが、カレンダーの枠が空いていたのでgistで投稿します。

  • http://bl.ocks.org/mbostock
    • d3.js の作者であるMike Bostockがgist の作品の数々が置いています。ちなみにbl.ocks.orgはMike本人が作ったd3.jsビューアで、ソースコードをgistに置くことでだれでも投稿可能です。
  • http://tributary.io
    • d3.jsのコミュニティで有名なIan Jonsonが作ったd3.jsビューア。先ほどのbl.ocks.orgと違ってエディターを内蔵しており、ソースコードを変更するたびにリアルタイムで結果が反映されます。
  • http://biovisualize.github.io/d3visualization/
    • 上記のビューアを含め、いろいろなサイトに散らばったd3.js情報を集約したギャラリー。作者、チャートタイプ、タイトルで検索可能。なんと[私の作品](http://biovisualize.github.io/d3visualization/#author=Makoto Inoue)も登録されています!!

PerlベースのWebアプリ作成を「委譲」する際のスキルチェックリスト20! - ゆーすけべー日記

質問
1 HTML/CSS/JSが無理なく書ける YES
2 Perlのプリミティブなデータ表現、つまりスカラー、配列、ハッシュを理解している YES
3 リファレンスを使いこなして複雑なデータを表現したり操作出来る YES
4 bless関数によるオブジェクト作成とMoose/Mouse/Mooの使用 YES
5 システムPerlではなくperlbrewもしくはplenvでコンパイルしたperlを利用している YES
6 cpanシェルではなくcpanmでモジュールをインストールしている YES
@azu
azu / FunctionalJs.md
Last active December 17, 2015 07:28 — forked from ympbyc/FunctionalJs.md

Functional JavaScript

2013 Minori Yamashita ympby@gmail.com

-- ここにあなたの名前を追記 --

目次

@azu
azu / ldr_pin_feed.user.js
Created April 13, 2013 01:22 — forked from Constellation/ldr_pin_feed.user.js
fix toString issue
// ==UserScript==
// @name LDR Pin Feed
// @namespace http://d.hatena.ne.jp/Constellation/
// @description show pin items as feed
// @author Constellation
// @include http://fastladder.com/reader/*
// @include http://reader.livedoor.com/reader/*
// ==/UserScript==
(function(win){
//Configuration
@azu
azu / Rakefile
Created January 26, 2013 05:30 — forked from taktamur/Rakefile
use homebrew & v 3.2.1
# -*- coding: utf-8 -*-
# Rictyフォントを入れるための手順をまとめた、自分用のRakefileです。
# Ricty http://save.sys.t.u-tokyo.ac.jp/~yusa/fonts/ricty.html
#
# Rakefileのフォーマット http://www.kyobashi.org/hf/RakeUserGuide/?RakefileFormat
#
# 2012/11/05 taktamur@gmail.com
# clean/clobberについては http://www2s.biglobe.ne.jp/~idesaku/sss/tech/rake/
require 'rake/clean'