Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
// knockout 2.2.1 | |
ko.utils.arrayFilter = function (array, predicate) { /* .. */ } | |
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ } | |
ko.utils.arrayForEach = function (array, action) { /* .. */ } | |
ko.utils.arrayGetDistinctValues = function (array) { /* .. */ } |
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>SendGrid Demo</title> | |
</head> | |
<body> | |
<form action="process.cfm" method="POST"> | |
<div> | |
<label for="emails"> |
// Create a private scope. | |
(function( $, on ){ | |
// I proxy the given function and return the resultant GUID | |
// value that jQuery has attached to the function. | |
var createAndReturnProxyID = function( target ){ | |
// When generating the proxy, it doesn't matter what the | |
// "context" is (window in this case); we never actually |
var spawn = require('child_process').spawn; | |
var Stream = require('stream'); | |
/** | |
* crops and resizes images to our desired size | |
* @param {Stream} streamIn in stream containing the raw image | |
* @return {Stream} | |
*/ | |
exports.cropImage = function(streamIn){ |
const net = require("net"); | |
var server = net.createServer(function (c) { | |
var oldWrite = c.write; | |
c.write = function(d) { | |
if (!Buffer.isBuffer(d)) { | |
d = new Buffer(d); | |
} | |
oldWrite.call(this, d); | |
server.bytesSent += d.length; |
## | |
## This nginx.conf servers as the main config file for webflow reverse proxy | |
## | |
## RCS: | |
## https://gist.github.com/sansmischevia/5617402 | |
## | |
## Hardening tips: | |
## http://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver-security.html | |
## |
var RTBkit = require('../build/x86_64/bin/rtb.node'); | |
var services = require('../build/x86_64/bin/services.node'); | |
var zookeeperUri = "localhost:2181"; //must point to same Zookeeper as routers | |
var services = new services.ServiceProxies(); | |
services.bootstrap('bootstrap.json'); | |
var agent = new RTBkit.BiddingAgent('myAgent', services); |
# Change YOUR_TOKEN to your prerender token | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
server { | |
listen 80; | |
server_name example.com; | |
root /path/to/your/root; | |
index index.html; |