- 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
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
<?php | |
$arr = array( | |
"first" => 1, | |
"second" => 2, | |
); | |
echo "\nBefore \n"; | |
print_r($arr); |
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
/* | |
データを手っ取り早くテーブルにして表示するための関数 | |
何を表示するかを定義したheaderと、 | |
配列形式で複数行のデータが入ったdataを渡すと | |
テーブルのHTMLを返す | |
*/ | |
var tableBuilder = function(header, data) { | |
var html = '<table class="table"><thead><tr>'; | |
for (var key in header) { | |
html += '<th id="label_' + key + '">' + header[key] + '</th>'; |
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
#!/usr/local/bin/python2.7 | |
import md5 | |
def hexTo64(hex): | |
result = [] | |
for i in range(8): | |
# 16 * 16 / 4 = 64 | |
tmp = int(hex[i * 2: i * 2 + 2],16) / 4 | |
if tmp < 26: | |
# A-Z |
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 com.appspot.pistatium.tomorrow.service; | |
import java.util.Calendar; | |
import java.util.TimeZone; | |
import android.app.AlarmManager; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.content.Intent; |
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 markdown | |
md = markdown.Markdown() | |
sample_makedown = ''' | |
An h1 header | |
============ | |
Paragraphs are separated by a blank line. |
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
<provider | |
android:name="com.activeandroid.content.ContentProvider" | |
android:authorities="APKのパッケージ名" /> |
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
$obj = simplexml_load_string($xml); | |
$json = json_encode($obj); |
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 param.status == 1 %} | |
<!-- 特定の条件の場合activeというクラス名をつける --> | |
<li class="active"> | |
{% else %} | |
<li> | |
{% endif %} | |
<a href="#">Active</a> | |
</li> | |
…… |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer