Skip to content

Instantly share code, notes, and snippets.

@NdYAG
NdYAG / A-Pen-by-Simon.markdown
Created February 20, 2014 06:25
A Pen by Simon.
@NdYAG
NdYAG / SassMeister-input.scss
Created February 20, 2014 09:44
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.4)
// Compass (v1.0.0.alpha.18)
// ----
%h1 {
font-size: 2em;
}
%h2 {
font-size: 1.8em;
@NdYAG
NdYAG / Book.markdown
Created February 20, 2014 16:34
A Pen by Simon.
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<ul class="items">
<li class="item" data-status='{"liked": false}'>
<div class="item-status">
@NdYAG
NdYAG / 0_reuse_code.js
Created June 29, 2014 15:24
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
@NdYAG
NdYAG / kobito.js
Created July 23, 2014 04:19
Kobito.app Exporter
var util = require('util')
, sqlite3 = require('sqlite3').verbose()
, fs = require('fs')
, mkdirp = require('mkdirp')
var Kobito = function(path) {
this.db = new sqlite3.Database(path)
}
Kobito.prototype = {
execAll: function(sql, callback) {

#Techniques for Anti-Aliasing @font-face on Windows

It all started with an email from a client: Do these fonts look funky to you? The title is prickly.

The font in question was Port Lligat Sans from Google Web Fonts.

The "prickly" is aliasing caused by lack of hinting

#!/usr/bin/env python
# -*- coding:utf-8 -*-
# This script read the latest
# Beijing air quality from stateair
# and send notification to Pushbullet
import json
import urllib2
from xml.dom import minidom
@NdYAG
NdYAG / markdown.xml
Created August 18, 2012 09:44 — forked from lg0/markdown.xml
Markdown Syntax Highlighting for Sublime text 2
<!-- copy this to YOUR_THEME.tmTheme-->
<dict>
<key>name</key>
<string>diff: deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#EAE3CA</string>