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
dist | |
node_modules |
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
python | |
file-examples |
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
/** | |
* 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 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 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
#!/usr/bin/env perl | |
use warnings; | |
use strict; | |
# Animation frames... | |
# Color ASCII escape sequences, gzipped and base64 encoded, because | |
# I thought 300 lines of animation frames was a little much. | |
my @frames = ( q( | |
H4sIAHywIU8AA+1d23XkOA797xT8oxBst+11z4QyMVQO+7ExbIAbydrdVXqCeJOEKNQZnzMURIq4 | |
BEAU6jb19M/b59/vfz/fnv78z8uvj9u0+zz98yUFrrI6PG473nX8wA/68cSYI+fze/hlNkvz9fWV |
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
; 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 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
#!/bin/bash | |
# | |
# Fancy prompt | |
# | |
# Source this file in your .bashrc | |
# | |
# Configuration options: | |
# | |
# Set _prompt_config to an array of strings. Each string is in the |
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
# | |
# Jekyll Dev Only Tag | |
# | |
# Author : Colin Kennedy | |
# Usage : | |
# | |
# The markup/script/css included within the `devonly` tags | |
# is included in the rendered page when either: | |
# | |
# * `server` mode is used |
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
-- 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 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(); |
NewerOlder