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(){ | |
debugger; | |
})() |
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
const express = require('express'); | |
const app = express(); | |
const port = 3000; | |
const bodyParser = require('body-parser').json({ limit: '40mb' }); | |
function responseTime(req, res, next) { | |
const start = process.hrtime(); | |
res.on('finish', () => { |
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
const escape = value => { | |
const hasSpace = /\s/.test(value); | |
const hasNewLine = /\\n/.test(value); | |
return hasSpace || hasNewLine ? JSON.stringify(value) : value | |
} | |
const toKeyValue = (key, value) => { | |
return `${key}=${escape(value)}` | |
} |
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
{ | |
"dependencies": { | |
"@hapi/hapi": "^19.1.1", | |
"@hapi/joi": "^17.1.0", | |
"qs": "^6.9.1" | |
} | |
} |
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
// generated by quake, do not modify | |
unbindall | |
bind TAB "+scores" | |
bind ENTER "+button2" | |
bind ESCAPE "togglemenu" | |
bind SPACE "+moveup" | |
bind + "sizeup" | |
bind - "sizedown" | |
bind / "weapnext" | |
bind 0 "weapon 10" |
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
import React, { Component } from 'react'; | |
import TweenComponent from './TweenComponent'; | |
export default class Animated extends TweenComponent { | |
state = { | |
x: 0, | |
y: 0, | |
scale: 1, | |
}; |
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
javascript:Array.from(document.querySelectorAll('[data-source-name="productHunt"]')).forEach((a) => a.click()) |
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
[{ | |
"name": "Aisne", | |
"number": "02" | |
}, { | |
"name": "Marne", | |
"number": "51" | |
}, { | |
"name": "Pas-de-Calais", | |
"number": "62" | |
}, { |
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
//Insert any smiley you want here | |
var emoji = [":bowtie:", ":smile:", ":laughing:", ":blush:", ":smiley:"] | |
var interval = setInterval(function(){ | |
var em = emoji[Math.floor(Math.random()*emoji.length)]; | |
$('#message-input').val(em); | |
$('#message-form').submit(); | |
}, 500); |
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
LIBS := $(wildcard lib/*.js) | |
SOURCE_JS := inject.es6 | |
BUILD_JS := dist/inject.min.js | |
SOURCE_CSS := inject.css | |
BUILD_CSS := dist/inject.min.css | |
UGLIFYJS := ./node_modules/uglify-js/bin/uglifyjs | |
BABEL := ./node_modules/babel-cli/bin/babel.js |
NewerOlder