I hereby claim:
- I am Eric-Guo on github.
- I am ericguo (https://keybase.io/ericguo) on keybase.
- I have a public key whose fingerprint is 3017 E111 4D24 D4AD 19AD 34B3 4631 036D 2383 8650
To claim this, I am signing this object:
var orig = [ | |
[ | |
"Afghanistan (افغانستان)", | |
"af", | |
"93" | |
], | |
[ | |
"Albania (Shqipëri)", | |
"al", | |
"355" |
I hereby claim:
To claim this, I am signing this object:
# encoding: utf-8 | |
require 'mini_magick' | |
image = MiniMagick::Image.open('origin.jpg') | |
image.combine_options do |c| | |
c.font '/Library/Fonts/Songti.ttc' | |
c.pointsize 38 | |
c.draw "text 360,145 'Ruby语言'" | |
c.fill 'red' | |
end | |
outimage = image.composite(MiniMagick::Image.open('overlay.jpg')) do |c| |
# encoding: utf-8 | |
require 'mini_magick' | |
image = MiniMagick::Image.open('origin.jpg') | |
image.combine_options do |c| | |
c.font '/Library/Fonts/Songti.ttc' | |
c.pointsize 28 | |
c.gravity 'Center' | |
c.pointsize '22' | |
c.draw "text 3,3 'Ruby语言'" | |
c.fill 'red' |
#!/usr/bin/ruby | |
#Developed by proxhotdog on 15 June 2012 | |
#Ruby 1.8.7 | |
#Mac OSX 10.7 Lion | |
#QR code generator written in ruby | |
require 'rubygems' | |
require 'rqrcode_png' | |
firstname = "Chan" #姓 | |
lastname = "Tai Man" #名 |
config.ignore_if do |exception, options| | |
# use beginning to prevent non unique keys (they include object ids and such) | |
key = exception.message.split("for").first[0..30] | |
ExpirableKey.new(key).exist_with_renew | |
end |
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>For Topre REALFORCE 87u Users</name> | |
<devicevendordef> | |
<vendorname>TopreCorporation</vendorname> | |
<vendorid>0x0853</vendorid> | |
</devicevendordef> | |
<item> | |
<name>Fix FN + F1..F12 and functional keys</name> |
#!/bin/sh | |
# | |
# chkconfig: 2345 55 25 | |
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx | |
# For Debian, run: update-rc.d -f nginx defaults | |
# For CentOS, run: chkconfig --add nginx | |
# if report exist, running update-rc.d -f nginx remove first | |
# | |
### BEGIN INIT INFO | |
# Provides: nginx |
#!/bin/sh | |
# | |
# chkconfig: 2345 55 25 | |
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx | |
# For Debian, run: update-rc.d -f nginx defaults | |
# For CentOS, run: chkconfig --add nginx | |
# | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all |