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
dist | |
node_modules |
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
python | |
file-examples |
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
/** | |
* Make some big docs to make big pdfs | |
* | |
* node make_giant_doc.js > giant.html | |
* wkhtmltopdf giant.html giant.pdf | |
*/ | |
const NUM_PAGES = 15000; | |
const LOREM = ` | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam placerat nibh eget |
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
param( | |
[string]$source_drive_letter, | |
[string]$destination_drive_letter | |
) | |
if ([string]::IsNullOrEmpty($source_drive_letter)) | |
{ | |
Write-Output "No source_drive_letter argument provided" | |
exit | |
} |
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
; Used to change the monitor source | |
; Requires ControlMyMonitor from https://www.nirsoft.net/utils/control_my_monitor.html | |
setMonitorInputSource(monitor, inputSelectCode, source) | |
{ | |
cmd := "ControlMyMonitor.exe /SetValue " . monitor . " " . inputSelectCode . " " . source | |
Run %cmd% | |
} | |
; Map monitor switch to same keys as synergy keyboard switch | |
$^![:: |
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
var Benchmark = require('benchmark'); | |
var moment = require('moment'); | |
var faker = require('faker'); | |
var suite = new Benchmark.Suite; | |
var format = 'YYYY-MM-DD'; | |
var dateArr = []; | |
var pad = "00"; | |
for (let i = 0; i < 100000; i++) { | |
dateArr[i] = moment(faker.date.past()).format(); |
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
{ | |
"name": "ld-pull", | |
"version": "1.0.0", | |
"description": "Pull LudumDare web builds and unpack them", | |
"main": "pull.js", | |
"dependencies": { | |
"request": "^2.72.0" | |
}, | |
"devDependencies": {}, | |
"scripts": { |
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
var Benchmark = require('benchmark'), | |
suite = new Benchmark.Suite; | |
var obj = { | |
name: 'myobj', | |
meth: function() { | |
return this.name; | |
} | |
}; |
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
-- Auto-reload config | |
function reloadConfig(files) | |
doReload = false | |
for _,file in pairs(files) do | |
if file:sub(-4) == ".lua" then | |
doReload = true | |
end | |
end | |
if doReload then | |
hs.reload() |
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
FROM heroku/cedar:14 | |
RUN useradd -d /app -m app | |
USER app | |
ENV HOME=/app PORT=3000 \ | |
resty_version=1.7.10.2 rocks_version=2.1.2 \ | |
STDOUT_PIPE="/app/openresty/nginx/logs/access" \ | |
STDERR_PIPE="/app/openresty/nginx/logs/error" |
NewerOlder