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
"""Halton low discrepancy sequence. | |
This snippet implements the Halton sequence following the generalization of | |
a sequence of *Van der Corput* in n-dimensions. | |
--------------------------- | |
MIT License | |
Copyright (c) 2017 Pamphile Tupui ROY |
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
-- Adapted from these sources: | |
-- http://peterdowns.com/posts/open-iterm-finder-service.html | |
-- https://gist.github.com/cowboy/905546 | |
-- | |
-- Modified to work with files as well, cd-ing to their container folder | |
on run {input, parameters} | |
tell application "Finder" | |
set my_file to first item of input | |
set filetype to (kind of (info for my_file)) | |
-- Treats OS X applications as files. To treat them as folders, integrate this SO answer: |
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
from __future__ import print_function | |
import sys | |
import chainer | |
from chainer.utils import conv | |
class ComputationalCostHook(chainer.function.FunctionHook): | |
name = 'ComputationalCostHook' |
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/sh | |
set -e | |
ssh='ssh' | |
ec2din="ec2-describe-instances" | |
while [ $# -gt 0 ]; do | |
case $1 in | |
-*) | |
if [ -z "$2" ]; then | |
break |
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
Temp/ | |
Library/ | |
obj/ | |
*.svd | |
!Library/*.asset | |
!Library/AssetImportState | |
!Library/AssetVersioning.db | |
!Library/BuildPlayer.prefs | |
!Library/ScriptMapper |
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 is the git ignore file used in Duck Hunted | |
#Note that ! negates an ignore. We ignore everything in Library then | |
#un-ignore the metadata folder and some specific files | |
#Use at your own risk, this may totally destroy your project, but it worked for us | |
#NOTE: this will cause your collaborators to re-import assets periodically | |
Temp/* | |
Library/* | |
Build/* |
NewerOlder