hello world hello 世界
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
<html> | |
<head> | |
<title>Testing CSS Sprites | Kelvin Tay 2013</title> | |
<meta name="description" content="playing around with CSS Sprites"> | |
<meta name="author" content="Kelvin Tay [[email protected]]"> | |
<!-- CSS here --> | |
<link rel="stylesheet" href="sprite.css"></link> | |
</head> | |
<body> | |
<div id="menu"> |
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/bin/python | |
# -*- coding: utf-8 -*- | |
# hiragana flashcards by Kelvin Tay [[email protected]] | |
import random | |
hira = [['-a', u'あ'],['-i', u'い'],['-u', u'う'],['-e', u'え'],['-o', u'お'], | |
['ka', u'か'],['ki', u'き'],['ku', u'く'],['ke', u'け'],['ko', u'こ'], | |
['sa', u'さ'],['shi', u'し'],['su', u'す'],['se', u'せ'],['so', u'そ'], | |
['ta', u'た'],['chi', u'ち'],['tsu', u'つ'],['te', u'て'],['to', u'と'], | |
['na', u'な'],['ni', u'に'],['nu', u'ぬ'],['ne', u'ね'],['no', u'の'], |
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 java.util.ArrayList; | |
import java.util.List; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.Arrays; | |
public class RaharjoQueue { | |
static int DEFAULT_PACK_SIZE = 3; | |
private List<String> customers; // list of customers in original order |
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
def get_summary(scores, wafer_num): | |
if wafer_num not in scores: | |
return None | |
wafer_scores = scores[wafer_num] | |
formula = '+'.join(map(str,wafer_scores)) | |
sumScore = sum(wafer_scores) | |
return "For Wafer #%d, the score is %s=%d , the count is %d" % (wafer_num, formula, sumScore, len( wafer_scores)) | |
csv_file = open('YOUR CSV FILE PATH', 'r') | |
scores = {} |
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
.navbar.live { | |
background: red !important; | |
} | |
.navbar.staging { | |
background: blue !important; | |
} | |
.navbar.dev { | |
background: green !important; |
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
alert('Buongiorno!'); |
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 csv | |
import sys | |
import os | |
# example usage: python split.py example.csv 200 | |
# above command would split the `example.csv` into smaller CSV files of 200 rows each (with header included) | |
# if example.csv has 401 rows for instance, this creates 3 files in same directory: | |
# - `example_1.csv` (row 1 - 200) | |
# - `example_2.csv` (row 201 - 400) | |
# - `example_3.csv` (row 401) |
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
$a = 2; | |
$default = 1; | |
// same as the following command: | |
// $b = $a? $a : $default; | |
$b = $a ?: $default; |
Examples
./phpunit --filter test_get_priority_jobs
./phpunit models/JobModelTest.php
OlderNewer