Skip to content

Instantly share code, notes, and snippets.

@ctaggart
ctaggart / install.sh
Last active December 2, 2019 15:05
jQuery Tests in TypeScript on Node.js
#!/bin/sh -e
npm install --save jquery
npm install --save-dev jsdom
npm install --save-dev chai
npm install --save-dev mocha
npm install --save-dev @types/node
npm install --save-dev @types/jsdom
npm install --save-dev @types/chai
npm install --save-dev @types/mocha
@ctaggart
ctaggart / FreeGeoIP.d.ts
Created December 12, 2016 01:04
TypeScript Testing of jQuery Ajax from Node.js
interface FreeGeoIP {
ip: string;
country_code: string;
country_name: string;
region_code: string;
region_name: string;
city: string;
zip_code: string;
time_zone: string;
latitude: number;
namespace std { inline namespace __1 { } }
typedef __signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef int8_t int_least8_t;
configure.ac:121: installing './compile'
configure.ac:8: installing './missing'
Makefile.am: installing './depcomp'
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking build system type... x86_64-apple-darwin19.0.0
checking host system type... x86_64-apple-darwin19.0.0
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
use azure_sdk_storage_core::client::Client;
use azure_sdk_storage_table::table::TableService;
use std::error::Error;
use tokio_core::reactor::Core;
use futures::stream::Stream;
fn main() {
code().unwrap();
}
@ctaggart
ctaggart / create_blobs.rs
Created September 25, 2019 10:52
create_blobs.rs
use azure_sdk_core::prelude::*;
use azure_sdk_storage_blob::prelude::*;
use azure_sdk_storage_core::prelude::*;
use futures::future::*;
use std::error::Error;
use tokio_core::reactor::Core;
fn main() {
code().unwrap();
}
@ctaggart
ctaggart / Program.fs
Created November 23, 2014 04:17
SourceLink.SymbolStore example
open System
open System.IO
open SourceLink
open SourceLink.SymbolStore
open System.Reflection
let printfn format = Printf.ksprintf (fun message -> System.Diagnostics.Debug.WriteLine message) format
let pdbFcs = @"..\..\packages\FSharp.Compiler.Service.0.0.76\lib\net45\FSharp.Compiler.Service.pdb"
let dllFcs = @"..\..\packages\FSharp.Compiler.Service.0.0.76\lib\net45\FSharp.Compiler.Service.dll"
@ctaggart
ctaggart / Directory.Build.props
Last active March 30, 2019 19:17
RestorePackagesWithLockFile
<Project>
<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<RestoreLockedMode>true</RestoreLockedMode>
<NoWarn>NU1603</NoWarn>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>
</Project>

Keybase proof

I hereby claim:

  • I am ctaggart on github.
  • I am ctaggart (https://keybase.io/ctaggart) on keybase.
  • I have a public key ASA079rgBZ2jVb9pimW1IpBMNvyK8yjcxNygfqi2W_nbiwo

To claim this, I am signing this object:

kubectl run myubuntu --image ubuntu --rm -ti --restart=Never --overrides='
{
"metadata": {
"labels": {
"diditwork": "itdid"
}
},
"spec": {
"containers": [
{