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
process.on "uncaughtException", (err) -> | |
console.error err | |
process.on "unhandledRejection", (err) -> | |
console.error err |
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
# | |
# LEAN Foundation Docker Container 20180716 | |
# Cross platform deployment for multiple brokerages | |
# Intended to be used in conjunction with Dockerfile. This is just the foundation common OS+Dependencies required. | |
# | |
# Use base system for cleaning up wayward processes | |
FROM phusion/baseimage:0.9.22 | |
MAINTAINER QuantConnect <[email protected]> |
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
@font-face { | |
font-family: 'gilroylight'; | |
src: url('https://www.dropbox.com/s/w5t0d5ggb4e7q17/gilroy-light-webfont.woff2?dl=0') format('woff2'), | |
url('https://www.dropbox.com/s/sssysdx6bhi2hb8/gilroy-light-webfont.woff?dl=0') format('woff'); | |
font-weight: 300; | |
font-style: normal; | |
} | |
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
function dataURItoBlob(dataURI) { | |
// convert base64/URLEncoded data component to raw binary data held in a string | |
var byteString; | |
if (dataURI.split(',')[0].indexOf('base64') >= 0) | |
byteString = atob(dataURI.split(',')[1]); | |
else | |
byteString = unescape(dataURI.split(',')[1]); | |
// separate out the mime component | |
var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0]; |
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
<?php | |
class InstagramLike | |
{ | |
const MAIN_URL = "https://instagram.com", | |
LOGIN_URL = "https://www.instagram.com/accounts/login/ajax/"; | |
private $_csrf, | |
$_sessionid; |
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
app = require('express')() | |
exec = require('child_process').exec | |
fs = require 'fs' | |
app.get "*", (req, resp) -> | |
file = "." + req.url | |
if fs.existsSync file | |
exec "coffee #{file}", (err, stdout, stderr) -> |