A Pen by Justin Liu on CodePen.
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
<div class="box--middle"> | |
<img src="http://images.sodahead.com/profiles/0/0/2/4/0/9/7/2/1/I-like-when-girls-kiss-girls-42672842512.jpeg"> | |
</div> |
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
{ | |
"user": { | |
"debug": true, | |
"delay": 0.25, | |
"error_color": "D02000", | |
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", | |
"gutter_theme_excludes": [], | |
"lint_mode": "background", | |
"linters": { | |
"jscs": { |
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
var async = require('async'); | |
var trycatch = require('trycatch'); | |
function doSomething(cb) { | |
setTimeout(function(){ | |
throw 999; | |
}); | |
} | |
trycatch(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
var async = require('async'); | |
function doSomething(cb) { | |
setTimeout(function(){ | |
throw 999; | |
}); | |
} | |
try { | |
async.series( |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>HTML5, CSS3 and JavaScript demo</title> | |
</head> | |
<body> | |
<h1>Example 1</h1> | |
<a class="caption caption-1" href="#" data-title="Smug Eagle" data-des="I watched the four riders raise their weapons into the air. Without warning, screaming their war cry. They led the attack, down to the battle they rode."> | |
<img src="http://tympanus.net/Tutorials/PseudoElementsImageCaptions/images/1.jpg"> | |
</a> |
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
'use strict'; | |
var gcm = require('node-gcm'); | |
var promise = require('bluebird'); | |
var senderId = ''; // setting sender Id | |
var sendGCM = function(registrationIds, alert) { | |
return new promise(function(resolve, reject) { | |
var message = new gcm.Message({ |
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
{ | |
"聯醫仁愛": { | |
"tel": "02-27093600", | |
"address": "" | |
}, | |
"聯醫中興": { | |
"tel": "02-25523234", | |
"address": "" | |
}, | |
"聯醫忠孝": { |
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
var jsdom = require('jsdom'); | |
var promise = require('bluebird'); | |
var request = require("request"); | |
function getURL(url) { | |
return new Promise(function (resolve, reject) { | |
var target = url; | |
var jar = request.jar(); |
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
var crypto = require('crypto'); | |
var sendSMS = function(to, message) { | |
var promise = new Parse.Promise(); | |
Parse.Cloud.httpRequest({ | |
method: 'GET', | |
url: 'http://smexpress.mitake.com.tw/SmSendGet.asp?username=' +''+ '&password=' +''+ '&dstaddr=' + to + '&smbody=' + message + '&encoding=UTF8', | |
header: 'content-type: application/json', | |
success: function(httpResponse) { | |
promise.resolve(httpResponse); |
OlderNewer