View update_curl.sh
#! /usr/bin/env bash
# Install any build dependencies needed for curl
sudo apt-get build-dep curl
# Get latest (as of Feb 25, 2016) libcurl
mkdir ~/curl
cd ~/curl
wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2
tar -xvjf curl-7.50.2.tar.bz2
View date differences in google spreadsheets.js
// Subtracts two dates, formatted as e.g. 2025-04-10T12:46:10
// Author: Eric Mill, eric.mill@gsa.gov
// columns with notBefore and notAfter dates
var startField = "D";
var endField = "E";
var resultField = "F";
// first sheet
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
View playground.rs
macro_rules! get_neg {
($callback:ident[$($init:tt)*][$arg:expr][$($end:tt)*]) => {
let arg = $arg;
if arg < 0 {
$callback!($($init)* arg $($end)*)
} else {
$callback!($($init)* -arg $($end)*)
}
};
}
View mnist.py
import tensorflow as tf
import matplotlib.pyplot as plt
from datasets import mnist
dataset = mnist.train()
iterator = dataset.make_one_shot_iterator()
next_image, next_label = iterator.get_next()
with tf.Session() as sess:
View swSample.js
var cacheV = 'v1';
var cacheFiles = [
'./',
'./index.html',
'./js/app.js',
'./css/reset.css',
'./css/style.css',
'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic,700italic'
]
View playground.rs
use std::error::Error;
fn foo() -> Result<(), Box<Error + Send + Sync>> {
unimplemented!()
}
fn bar() -> Result<(), Box<Error>> {
foo().map_err(|e| e as Box<Error>)?;
Ok(())
View index.pug
- var weinreScript = self.htmlWebpackPlugin.options.data.weinreScript
doctype html
html
head
meta(charset='UTF-8')
title webpack
if weinreScript
script(src=weinreScript)
body
#app
View playground.rs
use std::error::Error;
fn foo() -> Result<(), Box<Error + Send + Sync>> {
unimplemented!()
}
fn bar() -> Result<(), Box<Error>> {
foo().map_err(|e| e as Box<Error>)?;
View pillar.json
{
"proxy": {
"proxytype": "napalm",
"driver": "junos",
"host": "192.168.1.11",
"username": "ccie",
"password": "Juniper123"
},
"routerName": "ce1",
"interfaces": {
View 1.RegistrySnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="Msi" displayName="Drobo Dashboard" displayVersion="3.2.0">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{863885B3-7C05-421C-8817-568712778745}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files (x86)\Drobo\Drobo Dashboard\]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{863885B3-7C05-421C-8817-568712778745}]]></UninstallString>