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
require 'serialport' | |
require 'colored' | |
require 'ruby-progressbar' | |
class Y201Grab | |
def self.a2s(*arr) | |
arr.pack 'c*' | |
end |
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
angular.module('fromNowFilter',[]).filter 'from_now', () -> | |
(date) -> | |
moment(date).fromNow() |
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
/** | |
* Basic AS3 VAST OVA Video Player Example | |
* Released as open source under the BSD License | |
* http://www.opensource.org/licenses/bsd-license.php | |
* | |
* hua.qiuh copied from dehash.com | |
*/ | |
package { | |
import com.apdevblog.events.video.VideoControlsEvent; |
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
package com.alibaba.ad.vas.example | |
{ | |
import flash.display.*; | |
import flash.events.*; | |
import flash.media.*; | |
import flash.net.*; | |
import flash.system.*; | |
import com.alibaba.ad.vas.toolkit.AdManager; | |
import com.alibaba.ad.vas.vast.model.AdUnit; |
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
fun! MySys() | |
return "mac" | |
endfun | |
set runtimepath=~/.vim_runtime,~/.vim_runtime/after,\$VIMRUNTIME | |
source ~/.vim_runtime/vimrc | |
"helptags ~/.vim_runtime/doc | |
set guifont=Lucida\ Sans\ Typewriter\ Regular:h13 | |
if has("gui_running") | |
set guioptions-=T | |
set t_Co=256 |
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/env ruby | |
require 'socket' | |
require 'net/http' | |
require 'net/https' | |
require 'open-uri' | |
require 'logger' | |
class AutoDNS | |
PARAMS = { |
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
#!/bin/sh | |
#****************************************************************# | |
# ScriptName: build-wd-server.sh | |
# Author: hua.qiuh | |
# Create Date: 2011-12-02 | |
# Modify Author: | |
# Modify Date: 2011-12-02 | |
# Function: | |
#***************************************************************# |
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
class String | |
def utf8! | |
%w(ascii-8bit utf-8 ucs-bom shift-jis gb18030 gbk gb2312 cp936).any? do |c| | |
begin | |
if self.respond_to? :encode | |
self.encode!('utf-8', c).force_encoding('utf-8') | |
else | |
require 'iconv' | |
text = Iconv.new('UTF-8', c).iconv(self) |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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
/** | |
* CSS3 progress bar | |
* desgin: http://dribbble.com/shots/522214-Progress-Bar | |
*/ | |
body { | |
background-image: repeating-linear-gradient(0, #3C3540 0, #3C3540 50%, #38313B 50%, #38313B 100%); | |
background-size: 3px 1px; | |
} | |
.prog-bar { |
OlderNewer