Skip to content

Instantly share code, notes, and snippets.

@clonn
clonn / Setting android in intelliJ IDE.md
Last active August 29, 2015 13:57
setting android environment in IntelliJ IDE, 設定 intelliJ IDE 的方法,以及實際遇到的問題, include android sdk, jdk setting.
@clonn
clonn / Failure [INSTALL_FAILED_OLDER_SDK].md
Last active August 29, 2015 13:57
intellij deploy to genymotion got error, Failure [INSTALL_FAILED_OLDER_SDK], 當執行發生錯誤的時候,解決方法

#when genymotion runs error.

After a lots setting, we can start intellij with genymotion.

if you face executed ERROR, message like this,

Failure [INSTALL_FAILED_OLDER_SDK]

##make sure you ADV version.

@clonn
clonn / jsoup web parse android intelliJ.md
Last active August 29, 2015 13:57
android parse web page - jsoup. use in intelliJ IDE, 用來抓網頁使用,主要處理 query URL, DOM parsing.

#android parse web page - jsoup. use in intelliJ IDE

now you can parse web page like jQUery, "jsoup".

##install jsoup,

Download jsoup jar, and import to your project. save jsoup.jar in libs folder in your project.

@clonn
clonn / server.js
Created April 19, 2014 04:14
simple node.js server
var http = require("http");
var port = 1337;
http.createServer(function (req, res) {
res.end("OK");
}).listen(port);
console.log("Start server port is " + port );
@clonn
clonn / index.ejs
Created April 19, 2014 04:36
sails.js simple chat gist, can check full status , https://github.com/clonn/sails-talk-demo
<div class="container" ng-app ng-controller="rootController">
<form action="/comment/create" method="POST" id="message-form">
<div class="form-group">
<input type="text" id="messge" ng-model="message" name="comments" placeholder="input comments ..." >
</div>
<button type="submit" class="btn btn-success">comment</button>
</form>
<div class="message">
@clonn
clonn / app.js
Last active August 29, 2015 14:00
app = angular.module("myApp", ["service.create"])
@clonn
clonn / readme.md
Last active August 29, 2015 14:10 — forked from max-mapper/readme.md
io.js 非官方聲明,中文版本

聲明: 此並非爲官方聲明。我並非爲 io.js 官方代表,如果有任何問題,歡迎在 node-forward 一起討論

io.js - what you need to know

io-logo-substack

  • io 內容主要會從 node v0.12 分支出來 ( node v0.12 是下一個正式版本,但是尚未釋出)
  • io.js 將會 完全相容 於 node.js
  • io.js 開發者大多於 node.js 核心貢獻者,這邊有關於 io.js 想法以及運作方針
@clonn
clonn / gist:dc9d523910d82fef5e64
Last active August 29, 2015 14:12
bath to converting whole project to CoffeeScript with js2coffee
#!/bin/bash
for FILE in `find . -name "*.js" -type f -o -path './node_modules' -prune -o -path './components' -prune`
do
if [ -e $FILE ] ; then
COFFEE=${FILE//.js/.coffee}
echo "converting ${FILE} to ${COFFEE}"
js2coffee "$FILE" > "$COFFEE"
else

How to set up Gulp with an ExpressionEngine project

I freaking love working with technologies like Grunt and Gulp, and wanted to share how to get my current EE front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, Craft, etc).

Install Node.js

  • If Node is not yet installed on the machine, it will need to be installed

Install Gulp (if needed)

@clonn
clonn / youtube-player.coffee
Created January 3, 2015 09:48
youtube-player.coffee, for controller, should be install and use, could not insert before.
(($) ->
options =
videoId: "youtube video id"
width: "640"
height: "480"
playerVars:
autoplay: 0
controls: 1
modestbranding: 0