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 python | |
import argparse | |
import math | |
parser = argparse.ArgumentParser(description=""" | |
Generates a SVG of a regular polygon. By default, a convex polygon is generated, | |
but the --advance option may be used to generate star polygons instead. | |
""") | |
parser.add_argument('points', type=int, metavar='POINTS', |
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
Download Emacs dependencies from GNU for your architecture: | |
http://ftp.gnu.org/gnu/emacs/windows/emacs-25-x86_64-deps.zip | |
http://ftp.gnu.org/gnu/emacs/windows/emacs-25-i686-deps.zip | |
The following DLLs need to be installed into Emacs's bin directory: | |
libffi-6.dll | |
libgmp-10.dll | |
libgnutls-30.dll |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 |
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 com.google.common.base.Preconditions; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.sql.Connection; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Types; |
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 slice = Array.prototype.slice; | |
function promisify(f) { | |
return function() { | |
// Save arguments and promote to real Array. | |
var args = slice.call(arguments); | |
return new Promise(function(resolve, reject) { | |
// Add our callback to argument list. | |
args.push(function(err, result) { |
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
// Sentinel value that indicates Promise has not executed. | |
var empty = {}; | |
function once(f) { | |
var result = empty; | |
var promise = null; | |
return function() { | |
// If we've saved something already, resolve it immediately. | |
if (result !== empty) { |