Skip to content

Instantly share code, notes, and snippets.

View hailiang-wang's full-sized avatar
🌴
On vacation

Hai Liang W. hailiang-wang

🌴
On vacation
View GitHub Profile
@hailiang-wang
hailiang-wang / index.html
Created November 29, 2014 07:46
ion-search directive with Ionic framework
<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Search directive example</title>
</head>
<body>
@hailiang-wang
hailiang-wang / index.html
Created November 29, 2014 08:04
ion-search directive with Ionic framework
<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Search directive example</title>
</head>
<body>
@hailiang-wang
hailiang-wang / Ionic---Attempts-At-Different-Navigation-Animations.markdown
Created December 17, 2014 05:38
Ionic - Attempts At Different Navigation Animations
@hailiang-wang
hailiang-wang / Alphabetically-Indexed-List:-1.0.0-beta.11.markdown
Created December 19, 2014 16:54
Alphabetically Indexed List: 1.0.0-beta.11
@hailiang-wang
hailiang-wang / Alphabetically-Indexed-List:-1.0.0-beta.11.markdown
Created December 19, 2014 16:55
Alphabetically Indexed List: 1.0.0-beta.11
SelectionQueryBuilder q = new SelectionQueryBuilder()
.expr("is_awesome", EQ, true)
.expr("money", GT, 50.0f)
.expr("speed", LT, 21.1f)
.or()
.expr("door_number", EQ, 123)
.or().expr(
new SelectionQueryBuilder()
.expr("a", GT, 0)
.expr("a", LT, 100)
@hailiang-wang
hailiang-wang / wechat-reply
Created January 16, 2015 07:35
nodejs wechat client
if (message.FromUserName === 'diaosi') {
// reply with text
res.reply('hehe');
} else if (message.FromUserName === 'text') {
// another way to reply with text
res.reply({
content: 'text object',
type: 'text'
});
} else if (message.FromUserName === 'hehe') {
@hailiang-wang
hailiang-wang / Ionic-Slider-with-"Transparent"-Header.markdown
Created January 23, 2015 06:20
Ionic Slider with "Transparent" Header
/*
*
* There is now an Angular directive, filter and provider!
* It can be found here: https://github.com/i18next/ng-i18next
* ng-i18next is now part of the i18next rganization!
*
*/
/*
* AngularJS directive for using i18next (http://jamuhl.github.com/i18next)