Skip to content

Instantly share code, notes, and snippets.

View yhsiang's full-sized avatar
🙅‍♂️
それだめ

LY Cheng yhsiang

🙅‍♂️
それだめ
View GitHub Profile
package main
import (
"bytes"
"crypto/tls"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
@yhsiang
yhsiang / main.ls
Created April 16, 2014 15:38
this script help you stream any content to youtube with youtube live streaming api, Here example is "Sky new" you can find rtmp url below. http://yhsiang.logdown.com/posts/2014/04/16/stream-to-youtube-with-live-streaming-api
require! <[googleapis request moment readline fluent-ffmpeg]>
rl = readline.create-interface do
input: process.stdin
output: process.stdout
video-id =''
stream-id = ''
stream-url = ''
@yhsiang
yhsiang / gulpfile.js
Last active July 21, 2018 03:52 — forked from chriskjaer/gulpfile.js
switch node-sass to stylus
var gulp = require('gulp'),
gutil = require('gulp-util'),
stylus = require('gulp-stylus'),
uglify = require('gulp-uglify'),
jade = require('gulp-jade'),
concat = require('gulp-concat'),
livereload = require('gulp-livereload'),
tinylr = require('tiny-lr'),
express = require('express'),
app = express(),
@yhsiang
yhsiang / Posts.re
Created December 6, 2017 05:39
ReasonReact Posts Component
type post = {
userId: int,
id: int,
title: string,
body: string
};
type posts = list(post);
type state = {
@yhsiang
yhsiang / Calendar.elm
Last active June 28, 2016 02:29
Calendar by elm-lang
module Calendar exposing (..)
import String
import Html exposing (div, span, node, text, button)
import Html.Attributes exposing (style)
import Html.Events exposing (onClick)
import Array
import Date exposing (Date)
import Date.Extra.Core exposing (daysInMonth, monthToInt, lastOfPrevMonthDate, firstOfNextMonthDate, toFirstOfMonth)
@yhsiang
yhsiang / Main.elm
Created June 21, 2016 08:44
Simple Selector in Elm
import Html exposing (node, div, span, text, input)
import Html.Attributes exposing (style, placeholder, value)
import Html.Events exposing (onClick)
import Html.App exposing (beginnerProgram)
{-| Representation of an selectable item. -}
type alias Item =
{ label : String
, value : String
}
@yhsiang
yhsiang / gist:ef79aa356d33c97d3a4a20d8706e6e19
Created May 23, 2016 02:26
influence mapping projects from @mckinneyjames
http://influencemapping.org/
http://littlesis.org/
http://www.poderopedia.org/
https://quienmanda.es/
https://www.quienesquien.wiki/
http://ahalo.hu/
http://openoil.net/
http://www.openinterests.eu/
http://siyazana.co.za/
http://www.openduka.org/
@yhsiang
yhsiang / phantom-angular-runner.js
Created December 3, 2013 08:24
$ phantomjs phantom-angular-runner.js [url]
var system = require('system');
var url = system.args[1] || '';
var renderHtml = function(url, cb) {
var page = require('webpage').create();
page.settings.loadImages = false;
page.settings.localToRemoteUrlAccessEnabled = true;
page.onCallback = function() {
cb(page.content);
page.close();
};
[{"name":"function (){var a=d.url(),b=f.$$replace;l&&a==f.absUrl()||(l++,c.$evalAsync(function(){c.$broadcast(\"$locationChangeStart\",f.absUrl(),a).defaultPrevented?f.$$parse(a):(d.url(f.absUrl(),b),g(a))}));f.$$replace=!1;return l}","time":0.5550000350922346,"percent":"0.282","$$hashKey":"76DU"},{"name":"function (){return c.hash()}","time":0.12799998512491584,"percent":"0.0651","$$hashKey":"76EQ"},{"name":"{{$state.current.title}}","time":0.24400002439506352,"percent":"0.124","$$hashKey":"76E8"},{"name":"$location.path()","time":2.303999906871468,"percent":"1.17","$$hashKey":"76CO"},{"name":"{{ config_build }}","time":0.30999997397884727,"percent":"0.158","$$hashKey":"76E2"},{"name":"function (){return d}","time":0.06399999256245792,"percent":"0.0326","$$hashKey":"76FU"},{"name":"{active:activeTab=='calendar'}","time":0.22700001136399806,"percent":"0.115","$$hashKey":"76EA"},{"name":"{active:activeTab=='sittings'}","time":0.11500008986331522,"percent":"0.0585","$$hashKey":"76ES"},{"name":"{active:activeTab
上面是通用拼音
下面是漢語拼音
bù yīn yī shìh bù jhǎng yī jhìh
bù yīn yī shì bù zhǎng yī zhì
yī zìh cháng shé jhèn
yī zì cháng shé zhèn
chéng cháng fēng pò wàn lǐ làng