View scss base template
1 2 3 4 5 6 7 8 9 10
/* Welcome to Compass.
* In this file you should write your main styles. (or centralize your imports)
* Import this file using the following HTML or equivalent:
* <link rel="stylesheet" href="/stylesheets/screen.css" media="screen" type="text/css" /> */
 
// This comment is not output to CSS
/* This comment is output to CSS */
 
 
// The CSS3 module provides cross-browser mixins for CSS properties
View jsonio.py
1 2 3 4 5 6 7 8 9 10
import simplejson
import json
 
def put(data, filename):
try:
jsondata = simplejson.dumps(data, indent=4, skipkeys=True, sort_keys=True)
fd = open(filename, 'w')
fd.write(jsondata)
fd.close()
except:
View 0_reuse_code.js
1 2
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View Genesis-Dynamik Website Builder "Twitter Bootstrap" Column Class Styles
1 2 3 4 5 6 7 8 9 10
/* Column Classes
--------------------------------------------- */
 
.five-sixths,
.four-sixths,
.four-fifths,
.one-fifth,
.one-fourth,
.one-half,
.one-sixth,
View Truss.java
1 2 3 4 5 6 7 8 9 10
import android.text.SpannableStringBuilder;
import java.util.ArrayDeque;
import java.util.Deque;
 
import static android.text.Spanned.SPAN_INCLUSIVE_EXCLUSIVE;
 
/** A {@link SpannableStringBuilder} wrapper whose API doesn't make me want to stab my eyes out. */
public class Truss {
private final SpannableStringBuilder builder;
private final Deque<Span> stack;
View Standard Terms & Conditions.md

Standard Terms & Conditions

The following terms and conditions, together with a signed project proposal, form an agreement that is intended to protect both parties, and is no way meant to trick or deceive you. I have tried to keep the wording as plain as possible, but if anything is unclear I will be more than happy to clarify it with you.

In short, [CLIENT NAME]—referred to herein as “you”—is engaging [MY NAME]—referred to herein as “I” & “me”—to undertake the work as specified in the attached proposal, and under the requirements of these terms and conditions.

Deadlines

I will do my best to meet all agreed deadlines. You agree to review my work and provide feedback and approval in a timely manner. You accept that delays in supplying required information, feedback or materials might result in significantly longer delays to the delivery of the finished work.

View gentoo-infinality
1 2 3 4 5 6 7 8 9 10
 
 
Infinality[1] 是一套 Linux 平台下通用字体渲染引擎 freetype 的补丁,它为 Linux 提供了近乎于 Windows 和 Mac 的字体渲染效果,特别是很好地解决了 Linux 下中文字体发虚的问题。本 wiki 提供了在 Gentoo Linux 下将微软雅黑字体配置出 Windows 7 渲染效果的方法。
 
### 1. 字体准备
 
安装宋体(SimSun)和微软雅黑(Microsoft YaHei)作为主要中文字体。实测文泉驿微米黑和文泉驿正黑在低分辨率下渲染效果不好,建议不用,最好删除。
 
宋体和雅黑可以在微软系统里拷贝或者下载,具体为四个字体文件: `msyh.ttf`, `msyhbd.ttf`, `simsun.ttc`, `simsunb.ttf`. 然后将其放置在`~/.fonts/`目录下:
View amazon-calc.js
1 2 3 4 5 6 7 8 9 10
// Amazonの注文履歴をTSV形式で出力するスクリプト
//
// 2015-01-01 時点での DOM 構造に対応, GoogleCrome, Opera でテスト済。
// formatEntry関数を書き換えれば自由な書式で出力できます。
//
// 参考:
// - Amazonの注文履歴をCSV形式にして出力するスクリプト
// https://gist.github.com/arcatdmz/8500521
// - Amazon で使った金額の合計を出す奴 (2014 年バージョン)
// https://gist.github.com/polamjag/866a8af775c44b3c1a6d
View mixins.scss
1 2 3 4 5 6 7 8 9 10
/**
* Note: Several of these mixins (especially the first few) assume you are using
* the Flat UI color variables and $flat-ui-colors from the flat-ui-colors gist
* > https://gist.github.com/rex/61964b6d2060059c6a5c
*/
// Generate a border for an item with a random color. Useful for debugging CSS layouts.
@mixin random-border() {
// Pick a random number from 1-20, since we have 20 flat-ui colors
$key: random(20);
View Wordpress Theme Options
1 2 3 4 5 6 7 8 9 10
//In Template
<?php
$options = get_option('sample_theme_options');
echo $options['phone1'];
?>
 
//in functions.php
require_once ( get_stylesheet_directory() . '/theme-options.php' );
 
//theme-options.php file:
Something went wrong with that request. Please try again.