This file contains hidden or 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
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
This file contains hidden or 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 | |
| inotifywait -q -m -e close_write -r */ --exclude ".*.pyc|.coverage" | while read -r path event filename; | |
| do | |
| echo -e "\n\n\033[1;7;37mRunning test because $path$filename was $event\033[0;1;0m" | |
| pipenv run pytest -s -vv -x tests -k 'test_hot_' | |
| done; |
This file contains hidden or 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 file defines a decorator '@log_to()' that logs every call to a | |
| # function, along with the arguments that function was called with. It | |
| # takes a logging function, which is any function that accepts a | |
| # string and does something with it. A good choice is the debug | |
| # function from the logging module. A second decorator '@logdebug' is | |
| # provided that uses 'logging.debug' as the logger. | |
| from __future__ import print_function | |
| from functools import wraps | |
| from inspect import getcallargs, getargspec |
This file contains hidden or 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
| for d in *; | |
| do | |
| if [ -d "$d" ]; | |
| then | |
| pushd "$d"; | |
| update_master.sh | |
| popd; | |
| fi; | |
| done; |
This file contains hidden or 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 | |
| if [[ -z "$1" ]]; then | |
| # Read shell parameter expansion to understand better what this answer do | |
| # https://stackoverflow.com/a/965072/3832827 | |
| # https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html | |
| echo "usage: $(basename $0) <file_name> [show_n_lines]"; | |
| exit 1; | |
| fi |
This file contains hidden or 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
| inotifywait -q -m -e close_write tasks/behaviour_training.py | while read -r filename event; do echo "train@$train_pid"; if [ -n "$train_pid" ]; then echo "Killing"; kill $train_pid; fi; echo "Running"; pipenv run train& train_pid="$!"; done; |
This file contains hidden or 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 | |
| for task in $(printf "select 7\r\nkeys *\r\nquit\r\n" | nc localhost 6379 | grep celery); do printf "select 7\r\nget $task\r\nquit\r\n" | nc localhost 6379; done |
This file contains hidden or 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/python | |
| mensalidade=400 # R$400 | |
| dias=21 # 21 dias úteis no mês | |
| transporte=3.5*2*dias # R$3,50 por ônibus, ida e volta (x2) | |
| monthly_spent=mensalidade+transporte # Dinheiro gasto no mês com este propósito | |
| daily_yield=0.02 # Objetivo diário de ganho 3% | |
| initial_ammount=1000 # Começando com R$1000 | |
| monthly_earnings=0 |
This file contains hidden or 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
| ! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| ! title Nord XResources + | |
| ! project nord-xresources + | |
| ! version 0.1.0 + | |
| ! repository https://github.com/arcticicestudio/nord-xresources + | |
| ! author Arctic Ice Studio + | |
| ! email development@arcticicestudio.com + | |
| ! copyright Copyright (C) 2016 + | |
| ! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
| #define nord0 #2E3440 |
This file contains hidden or 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
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " Remove all autocmds | |
| autocmd! | |
| let $VIM='~/.vim/' | |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " => Plugin stuff |