This file contains hidden or 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
player | |
.use(seekBar) | |
.use(volumeControl); | |
player | |
.use(function(next) { | |
if (hasAccess) { | |
return watchLaterControl(next); | |
} |
This file contains hidden or 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
function sendAlert (property, value) { | |
console.log('Sending alert... %s : %s', property, value); | |
var payload = { | |
apiKey: '', | |
message: '' | |
}; | |
var options = { | |
host: 'api.opsgenie.com', |
This file contains hidden or 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
<html> | |
<head> | |
<script src="https://hammerjs.github.io/dist/hammer.js"></script> | |
<style> | |
#myElement { | |
background: silver; | |
height: 300px; | |
text-align: center; | |
font: 30px/300px Helvetica, Arial, sans-serif; | |
} |
This file contains hidden or 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 PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | |
<html> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> | |
<meta content="width=device-width, initial-scale=1.0" name="viewport"> | |
<style type="text/css">} | |
@media (max-width: 480px) {body { | |
background-color:green !important} | |
</style> | |
<style type="text/css"> |
This file contains hidden or 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 PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | |
<html> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> | |
<meta content="width=device-width, initial-scale=1.0" name="viewport"/> | |
<style type="text/css"> | |
body { | |
background-color: yellow; | |
} | |
@media (max-width: 640px) { |
This file contains hidden or 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
/* | |
URLs: | |
http://localhost:3000/arrive?foo=bar&utm_source=smart-redir | |
*/ | |
var redirect = require('redirect-with-params'); | |
var express = require('express'); | |
var app = express(); | |
app.use(redirect({ |
This file contains hidden or 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
Function.prototype.uncurryThis=function(f){f=this;return function(){var a=arguments,b=[].slice.call(a,1);return f.apply(a[0],b)}} |
This file contains hidden or 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
Backbone.Collection.extend({ | |
sync: function(method, model, options) { | |
options || options = {}; | |
options.beforeSend = function(jqXhr) { | |
jqXhr.setRequestHeader('Range', this.params.get('from') + this.params.get('to')) | |
}.bind(this); | |
var xhr = Backbone.sync.call(this, method, model, options); | |
xhr.success(function() { | |
this.params.incr('page'); | |
}.bind(this)); |
This file contains hidden or 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
MyDear Robert Oroszi | |
I’m Barrister A Government Attorney Martins Gonbella. A Legal Practitioner by profession with over 18years of experience. By the grace of God, I was a legal adviser to the late Mr:Michael Oroszi,who died in a car Accident here in Port-Novo Benin.I am contacting you after reading your profile in the Internet. | |
I seek your consent to present you to the Bank as his Next of Kin. You will stand as the right beneficiary of his sum of $12.5 Million USD with the Bank and his un-supervised estate left behind. I will forward the details to you for perusal upon receiving your information as below,kindly send in your response to my private | |
email ( [email protected] ) for security reasons. Your full name: ................ Age: ....................... Occupation: | |
..................... Private e-mail address: ......... Mobile phone | |
number:............. Your country of residence: ...... | |
Call For More Information +229 68924798 | |
Best Regards | |
Barrister Martins Gonbella |
This file contains hidden or 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
//app.js | |
var cls = require('continuation-local-storage'); | |
var uuid = require('node-uuid'); | |
var model = require('./model'); | |
app.use(function(req, res, next) { | |
var tid = uuid.new(); | |
var ns = cls.createNamespace('request'); | |
ns.set('tid', tid); | |
ns.bindEmitter(req); | |
ns.bindEmitter(res); |