- OS - Sierra 10.12
- Tensorflow - 1.7.0
- Xcode command line tools - 8.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v)
- Cmake - 3.11
- Bazel - 0.11.1
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
#!/bin/bash | |
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/ | |
# | |
ARGS=2 | |
E_BADARGS=99 | |
if [ $# -ne $ARGS ] # correct number of arguments to the script; | |
then |
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
<html> | |
<head> | |
<script type='text/javascript' src='https://api.stackexchange.com/js/2.0/all.js'></script> | |
<script> | |
// I was a bit stumped because there wasn\'t a single example of how to actually' | |
// use the StackExchange JS API. As it turns out, you actually don\'t really use it. | |
// This SE.init() call may or may not get you higher quotas, and it allows your | |
// users to authenticate. If you don't need those, you can use the REST API without any | |
// libraries as shown below in getQuestions();", | |
SE.init({ |
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
# This extracts png images from the | |
# packed/pickle'd cifar-100 dataset | |
# available at http://www.cs.toronto.edu/~kriz/cifar.html | |
# | |
# No Rights Reserved/ CC0 | |
# Say thanks @whereismatthi on Twitter if it's useful | |
# | |
# probably requires python3 | |
# definitely requires PyPNG: pip3 install pypng |
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
module ObjectExtensions | |
def methods | |
return super - Object.methods unless self == Object | |
super | |
end | |
end | |
class Object | |
prepend ObjectExtensions | |
end |
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
{ | |
"command": "watch", | |
"suppressTaskName": true, | |
"tasks": [{ | |
"taskName": "watch", | |
"command": "rbenv", | |
"args": ["exec", "bundle", "exec", "guard", "--no-interactions"], | |
"isBackground": true, | |
"problemMatcher": { | |
"applyTo": "allDocuments", |
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
require 'colorize' | |
puts "\n" | |
3.times do | |
String.colors.each do |color| | |
print ' '.colorize(color: :default, background: color) | |
print ' ' | |
end | |
puts '' | |
end |
Note: See MatanelGordon's comment for an updated approach to do this.
Just a quick how-to to import rules specified in .editorconfig into your stylelint configuration to avoid duplication.
Install the following packages. stylelint-config-standard
is just used as an example. Use a different one or your current configuration object.
#> (npm install -g | yarn global add) editorconfig stylelint stylelint-config-standard
I hereby claim:
- I am matthiaswinkelmann on github.
- I am matthi (https://keybase.io/matthi) on keybase.
- I have a public key ASC58jvqyXfBdzAYxJyHPiJvb1YR31znPlI9rOD7zXzSOgo
To claim this, I am signing this object:
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
# Save as <folder with your playbook>/callback_plugins/<some name>.py | |
# Optionally use no_log: True on your playbook/roles/tasks to suppress other output | |
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
import os | |
import time | |
import json | |
import sys |
NewerOlder