I hereby claim:
- I am jammycakes on github.
- I am jammycakes (https://keybase.io/jammycakes) on keybase.
- I have a public key whose fingerprint is 6C63 B606 EAF0 B758 4630 DE32 9177 2E70 1B9D C839
To claim this, I am signing this object:
| var child_process = require('child_process'); | |
| function install(modules, callback) { | |
| if (modules.length == 0) { | |
| if (callback) callback(null); | |
| return; | |
| } | |
| var module = modules.shift(); | |
| child_process.exec( | |
| 'npm install ' + module, |
| import math | |
| import scipy.optimize | |
| ''' | |
| This script attempts to predict how Git's popularity will increase | |
| over the next few years by extrapolating the results of the annual | |
| Eclipse Community Survey. | |
| The forecast assumes that Git adoption is following an S-curve | |
| (http://en.wikipedia.org/wiki/Sigmoid_function) up to an asymptotic |
| /// <summary> | |
| /// A <see cref="Lazy"/> object that implements <see cref="IDisposable"/>. | |
| /// </summary> | |
| /// <typeparam name="T"> | |
| /// The object being lazily created. | |
| /// </typeparam> | |
| public class LazyDisposable<T> : Lazy<T>, IDisposable where T: IDisposable | |
| { | |
| /// <summary> |
| /* ====== namespace.js ====== */ | |
| // Provides the ability to define namespaces in JavaScript. | |
| /** | |
| * Declares a namespace in JavaScript. | |
| * | |
| * This function can be called in one of two ways: | |
| * | |
| * namespace(ns, obj) |
| declare @name varchar(100) | |
| declare @table varchar(100) | |
| -- Drop all foreign key constraints: this goes through alter table | |
| declare c cursor for | |
| select a.name as [constraint], b.name as [table] from dbo.sysobjects a | |
| inner join dbo.sysobjects b on a.parent_obj = b.id | |
| where a.xtype='F' and b.xtype='U' | |
| open c |
| $msbuild = (Get-ItemProperty hklm:\software\Microsoft\MSBuild\ToolsVersions\4.0).MSBuildToolsPath | |
| $MyDir = [System.IO.Path]::GetDirectoryName($myInvocation.MyCommand.Definition) | |
| . "$msbuild\msbuild.exe" "$MyDir\build.proj" |
| #! /bin/bash | |
| function run_disowned() { | |
| "$@" & disown | |
| } | |
| function dos() { | |
| run_disowned "$@" 1>/dev/null 2>/dev/null | |
| } |
I hereby claim:
To claim this, I am signing this object:
This snippet detects various information about the shell script in which it is being executed. Copy and paste it into the top of your script.
Variables set are as follows:
$__SHELL: bash or zsh$__SOURCED: true if the file was invoked using source filename or . filename,
otherwise it will be blank.$__SCRIPT_PATH: the full absolute path to the script.$__SCRIPT_DIR: the full absolute path to the script's directory.| import re | |
| import boto3 | |
| import csv | |
| from botocore.exceptions import ClientError | |
| ec2 = boto3.client('ec2') | |
| def get_snapshots(): | |
| return ec2.describe_snapshots(OwnerIds=['self'])['Snapshots'] |