Skip to content

Instantly share code, notes, and snippets.

WON SEOB SEO wontheone1

Block or report user

Report or block wontheone1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d645a90788a129e08fae84d54a3c5401
$ python3 run_locally.py
err = 3 /opt/blizzard/buildserver/data.noindex/repositories/sc2/branches/SC2.4.9/Game/Contrib/macteam/libs/ClampCursor/Contrib/mach_override/mach_override.c:244
err = 3 /opt/blizzard/buildserver/data.noindex/repositories/sc2/branches/SC2.4.9/Game/Contrib/macteam/libs/ClampCursor/Contrib/mach_override/mach_override.c:258
err = 3 /opt/blizzard/buildserver/data.noindex/repositories/sc2/branches/SC2.4.9/Game/Contrib/macteam/libs/ClampCursor/Contrib/mach_override/mach_override.c:263
INFO:sc2.protocol:Client status changed to Status.launched (was None)
INFO:sc2.controller:Creating new game
INFO:sc2.controller:Map: AbyssalReefLE
INFO:sc2.controller:Players: Bot(Race.Random, <bot.main.MyBot object at 0x10c106438>), Computer(Race.Random, Difficulty.Medium)
INFO:sc2.protocol:Client status changed to Status.init_game (was Status.launched)
INFO:sc2.protocol:Client status changed to Status.in_game (was None)
View a.py
1 0 0 0 0
IMPOSSIBLE
1 1 0 0
1 1 0 1
0 0 0 0
---------------------------------------------------------------------------
_RemoteTraceback Traceback (most recent call last)
_RemoteTraceback:
"""
Traceback (most recent call last):
View gist:0abfdbb163751b5e6d6f71fa0401123f
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If your shell is Bash or a Bourne variant, enable conda for the current user with
$ echo ". /home/pghoou/anaconda3/etc/profile.d/conda.sh" >> ~/.bashrc
or, for all users, enable conda with
$ sudo ln -s /home/pghoou/anaconda3/etc/profile.d/conda.sh /etc/profile.d/conda.sh
The options above will permanently enable the 'conda' command, but they do NOT
View download_dogs-vs-cats-redux.sh
# Before running the script your kaggle.json file in ~/.kaggle folder
# This script downloads all data from
# https://www.kaggle.com/c/dogs-vs-cats-redux-kernels-edition
# And puts them into subdirectories so that it is easily usable with fast ai
# and easily make predictions for the test data and submit.
@wontheone1
wontheone1 / setup.sh
Last active Oct 6, 2018
Fastai setup script for GCP compute engine
View setup.sh
#! /bin/bash
DEBIAN_FRONTEND=noninteractive
sudo apt update
mkdir downloads
cd downloads
# INSTALL ANACONDA 5.3.0
@wontheone1
wontheone1 / HackerrankNewYearChaos.c
Last active Sep 7, 2018
Hackerrank New Year Chaos
View HackerrankNewYearChaos.c
1 2 3 4 5 6 7 8 ; Indices
1 2 3 4 5 6 7 8 ; person-numbers
0 0 0 0 0 0 0 0 ; person-numbers - indices
0 0 0 0 0 0 0 0 ; accumulated difference
; sum of accumulated difference: 0
; Total bribery: 0
1 2 3 4 5 6 7 8 ; Indices
1 2 3 5 4 6 7 8 ; person-numbers
0 0 0 1 -1 0 0 0 ; person-numbers - indices
View all-inclusive
(defn rot [string]
(for [index (range (count string))]
(->> (reverse (split-at index string))
(apply concat)
(apply str))))
(defn contain-all-rots [strng vec-str]
(every? (set vec-str) (rot strng)))
View partlist.clj
(def array ["az" "toto" "picaro" "zone" "kiwi"])
(def str-arr ["I" "wish" "I" "hadn't" "come"])
(concat (drop 1 (for [elmt array]
(map (partial clojure.string/join " ") (split-at (.indexOf array elmt) array)))))
(defn partlist [arr]
(->> (remove (partial some #{""})
(for [index (range (count arr))]
(map (partial clojure.string/join " ") (split-at index arr))))
You can’t perform that action at this time.