I hereby claim:
- I am kenoph on github.
- I am kenoph (https://keybase.io/kenoph) on keybase.
- I have a public key ASDM2sDBmy36iF2z4zWL2-xOVW6zgdOcPbQ8VFIq3qdjmAo
To claim this, I am signing this object:
| # Cython/pyximport don't work 100% with the `inspect` module. | |
| # For this reason, `IPython.embed()` is not able to get the locals from the current frame. | |
| # This is how to work around that | |
| import IPython | |
| def embed(locs): | |
| # Pass the locals explicitly | |
| IPython.embed(user_ns=locs) |
| REM Put this file in a directory and double click on it | |
| REM Some details: | |
| REM - ffmpeg must be in the system PATH | |
| REM - you can change the bitrate easily by changing the "q" parameter (https://trac.ffmpeg.org/wiki/Encode/MP3) | |
| for /f "tokens=1 delims=." %%a in ('dir /B *.wav') do ffmpeg -i "%%a.wav" -q:a 3 "%%a.mp3" |
I hereby claim:
To claim this, I am signing this object:
| /** | |
| * Replace CSV download links with urls to re-evaluate the past submission. | |
| * Basically, you can get the private leaderboard score without re-uploading the file. | |
| * | |
| * USAGE: | |
| * 1) Copy this script and change COMPETITION_URL accordingly | |
| * 2) Go to "My Submissions" page | |
| * 3) Open the Developer Console | |
| * 4) Paste the script and execute it | |
| * 5) Click on the links to open new tabs :) |
| #!/usr/bin/env python | |
| import keras | |
| import keras.callbacks | |
| import keras.models | |
| import keras.optimizers | |
| import keras.layers | |
| import numpy as np | |
| import theano |
| # Because I was on Windows, without dd :) | |
| import os | |
| import struct | |
| import sys | |
| if len(sys.argv) != 3: | |
| print "Usage:", sys.argv[0], "<crx file> <zip file>" | |
| exit(0) |
| /** | |
| * Helper to make Javascript's XPath calls simpler. | |
| * Basically you just need to give a query to the xp function. | |
| * Especially useful in manual testing of XPath strings inside a browser's console. | |
| * | |
| * Example: | |
| * xp("//body/text()") | |
| * | |
| * Author: Paolo Montesel | |
| * License: https://opensource.org/licenses/MIT |
| #!/bin/sh | |
| sudo umount ~/nexus4/ | |
| sudo go-mtpfs -allow-other=true ~/nexus4 |
| # sudo apt-get install scim | |
| # sudo apt-get install scim-anthy | |
| # sudo apt-get install scim-gtk-immodule | |
| # sudo apt-get install scim-qt-immodule | |
| # | |
| # CHROME: | |
| # GTK_IM_MODULE=xim XMODIFIERS="@im=SCIM" chromium-browser %U | |
| export XMODIFIERS="@im=SCIM" | |
| #export GTK_IM_MODULE="scim" |
| #!/usr/bin/python | |
| """ | |
| Find IMDB id of a given movie searching by title. | |
| Works with all languages, not just English like | |
| all the IMDB-python libs I've found on the internet. | |
| """ | |
| __author__ = '3mpty' |