Skip to content

Instantly share code, notes, and snippets.

@ansoncat
ansoncat / new_meta_https_blogger.html
Last active October 20, 2017 06:45
FB OpenGraph and G+ meta for Blogger
<!--<b:include data='blog' name='all-head-content'/>-->
<!-- Begin customized all-head-content and social metadata -->
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
<meta content='blogger' name='generator'/>
<link href='https://blog.ansoncat.com/favicon.ico' rel='icon' type='image/x-icon'/>
<link expr:href='data:blog.canonicalUrl.https' rel='canonical'/>
<link expr:href='data:blog.homepageUrl.https + &quot;feeds/posts/default&quot;' expr:title='data:blog.title + &quot; - Atom&quot;' rel='alternate' type='application/atom+xml'/>
<link expr:href='data:blog.homepageUrl.https + &quot;feeds/posts/default?alt=rss&quot;' expr:title='data:blog.title + &quot; - RSS&quot;' rel='alternate' type='application/rss+xml'/>
<link expr:title='data:blog.title + &quot; - Atom&quot;' href='https://www.blogger.com/feeds/5810831657127936703/posts/default' rel='service.post' type='application/atom+xml'/>
@ansoncat
ansoncat / index.js
Created August 22, 2014 05:43 — forked from edokeh/index.js
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
#!/usr/bin/env ruby
require 'faraday'
require 'json'
require 'gitlab'
module Redmine
Host = nil
APIKey = nil
console.image("http://i.imgur.com/0CvmX4i.jpg")
#!bash
# Shell to use imagemagick to add serial numbers to coupon image files(633x385).
for k in 60 67 68 73 50 62 59 61 53 57 63 33
do
echo Processing coupon-$k.jpg
convert coupon.jpg -pointsize 56 label:$k -geometry +470+296 -composite -quality 85 coupon-$k.jpg
done
@ansoncat
ansoncat / 1-rule.pegjs
Created September 20, 2012 13:57
Simple grammar in PEG.js
/*
* For something like A == 2 AND (B > 3 OR C >= 4 )
*/
start
= additive
additive
= left:multiplicative _ "OR" _ right:additive { return left + " OR " + right; }
/ multiplicative
@ansoncat
ansoncat / zh-TW.yml
Created March 26, 2011 11:11
Chinese Locales for redmine_close_button
# Traditional Chinese strings go here for Rails i18n
zh-TW:
button_close: "結束"