I hereby claim:
- I am samuelmarks on github.
- I am samuelmarks (https://keybase.io/samuelmarks) on keybase.
- I have a public key ASA_NL6SAsbWscw8Zy4_1_MPE1imscMAwBmaqg3uoIj2fgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class Python < Formula | |
desc "Interpreted, interactive, object-oriented programming language" | |
homepage "https://www.python.org/" | |
url "https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz" | |
sha256 "35446241e995773b1bed7d196f4b624dadcadc8429f26282e756b2fb8a351193" | |
revision 1 | |
bottle do | |
sha256 "1bc5a2d3f0a8602bf2f46de7c43fcb6dde4f110c0f4518d4e802cb1f733a43de" => :high_sierra | |
sha256 "131d39120ac6ca2f21bf231de7414c08916cea472bc5219e0bcb49541f77cb9f" => :sierra |
#!/usr/bin/env node | |
import * as fs from 'fs'; | |
import * as path from 'path'; | |
const walk = (dir: string, done: (err: NodeJS.ErrnoException, results?: string[]) => void): void => { | |
let results: string[] = []; | |
fs.readdir(dir, (err: NodeJS.ErrnoException, files: string[]) => { | |
if (err) return done(err); | |
let pending = files.length; |
#!/usr/bin/env bash | |
if [ ! -z DIR ]; then DIR=(off*/); fi | |
VENV="${VENV:-.offenv}" | |
REQUIREMENTS="${REQUIREMENTS:-'requirements.txt'}"; | |
if [ ! -d "$VENV/bin" ]; then | |
echo Cannot find "$VENV/bin" | |
exit 2; |
import 'reflect-metadata'; | |
import { createConnection } from 'typeorm'; | |
@Entity('user_tbl') | |
export class User { | |
@PrimaryColumn({ type: 'varchar' }) | |
public username: string; | |
@Column({ type: 'varchar', nullable: false, select: false }) | |
public password: string; |
// Now ignore everyone else; mongodump to CSV; `LOAD DATA FROM CSV` in MySQL | |
db.modulestore.structures.aggregate([ | |
{ $unwind: '$blocks' }, | |
{ $replaceRoot: { newRoot: "$blocks" } }, | |
{ $out: 'modulestore.blocks' } | |
]); |
digraph { | |
bgcolor=transparent; | |
splines=polyline; | |
phone0[label="Smartphone 0"]; | |
phone1[label="Smartphone 1"]; | |
phone2[label="Smartphone 2"]; | |
laptop0[label="Laptop 0"]; | |
laptop0[label="Laptop 1"]; | |
laptop0[label="Laptop 2"]; | |
server0[label="Server (DB, API, nginx, static files)", shape=cylinder] |
@Injectable() | |
class JWTInterceptor implements HttpInterceptor { | |
constructor(private router: Router) {} | |
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | |
return next.handle(req).map((event: HttpEvent<any>) => { | |
if (event instanceof HttpResponse) { | |
// do stuff with response if you want |
diff --git a/tutorials/image/cifar10/cifar10.py b/tutorials/image/cifar10/cifar10.py | |
index d99ffb9..4edcf68 100644 | |
--- a/tutorials/image/cifar10/cifar10.py | |
+++ b/tutorials/image/cifar10/cifar10.py | |
@@ -90,8 +90,8 @@ def _activation_summary(x): | |
# Remove 'tower_[0-9]/' from the name in case this is a multi-GPU training | |
# session. This helps the clarity of presentation on tensorboard. | |
tensor_name = re.sub('%s_[0-9]*/' % TOWER_NAME, '', x.op.name) | |
- tf.contrib.deprecated.histogram_summary(tensor_name + '/activations', x) | |
- tf.contrib.deprecated.scalar_summary(tensor_name + '/sparsity', |
#!/bin/sh | |
curl -s https://nodejs.org/dist/latest/ | sed -n 's:.*<a href=\".*\">node-v\(.*\).pkg</a>.*:\1:p' |