Skip to content

Instantly share code, notes, and snippets.

View liquidz's full-sized avatar
👶
hello world!

Iizuka Masashi liquidz

👶
hello world!
View GitHub Profile

core.typed: Annotation Patterns

core.typed dependencies: [org.clojure/core.typed "0.2.53"]

require: (require '[clojure.core.typed :as t])

Patterns

  • single param
(t/ann f1 [t/Str -> t/Str])
@liquidz
liquidz / css_resources.md
Created March 20, 2014 23:10 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@liquidz
liquidz / javascript_resources.md
Created March 20, 2014 23:10 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@liquidz
liquidz / 0_reuse_code.js
Created March 20, 2014 23:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
" 検索語を強調表示
set hlsearch
" j/k での移動量を3行に
map j 5<C-e>
map k 5<C-y>
" H/L でタブ移動
map H gT
map L gt
(ns foo.core
(:require
[clostache.parser :as clostache]
[cuma.core :as cuma]))
(def MAX_NUM 10000)
(defmacro time*
[expr]
`(let [start# (. System (nanoTime))
(ns fuga.core
(:require
[evalive.core :refer [evil]]
[clojure.string :as str]))
(defn- to-sym [x]
(symbol (name x)))
(defn- key-map->sym-map [m]
(into {} (map (fn [[k v]] [(to-sym k) v]) m)))
@liquidz
liquidz / notify_oauth_draft.js
Created June 12, 2012 09:10
Notify me OAuth2.0 draft updates every morning
// Initializing variables
var dayBaseTime = 5;
var oauthDraftUrl = 'http://tools.ietf.org/wg/oauth/draft-ietf-oauth-v2/';
// End of variables initializing
var isNull = function(x){
return (x === null || x === undefined);
};
@liquidz
liquidz / github_scold.js
Created June 9, 2012 05:54
Scold me if I didn't push to GitHub for 3 days
// Initializing variables
var githubAccessToken = 'GitHub Access Token';
var days = 3;
var message = 'GitHub: WOOOORK!!!!!';
// End of variables initializing
var isNull = function(x){
return (x === null || x === undefined);
@liquidz
liquidz / notify_weather.js
Created June 6, 2012 16:04
Notify me today's weather every day the first time I unlock my phone after 5 AM
// Initializing variables
var dayBaseTime = 5; // (day - 1) if before 5 AM
var weatherOption = {
location: 'Tokyo'
, locationtype: 'city'
, days: 0
};