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
import StringIO | |
class PukiWikiArrayToTeXTabular(): | |
"""Converts PukiWiki style array to TeX tabular environment.""" | |
def __init__(self, pukiwikiarray_string): | |
"""Receives PukiWiki Style array.""" | |
self.default_align = 'c' | |
self.pukiwikiarray_string = pukiwikiarray_string | |
self.converted_string = self.converter() | |
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 a simple code to convert Moves JSON file to gpx files. | |
Each day in JSON file will be converted into different gpx file, | |
one file for a single day. | |
If you think this behavior annoying, please feel free to rewrite the code:D | |
Usage: 1. Get JSON file from: http://moves-export.herokuapp.com/ | |
2. The file you've got may have some errors to be a valid JSON file, | |
so do some surgery to the file. | |
I did `s/,\+/,/g` in Vim to delete successive commas, |
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
""" | |
1. Go to https://dev.moves-app.com/apps and register a new app. | |
client_id and client_secret will be given, so paste it to the variables below. | |
2. `$ python moves-fetch.py --requesturl` will open the web browser. | |
Follow the instructions and authenticate the app. | |
You will be redirected to a web page with an error message. | |
Copy the string between `code=` and `&`. | |
That is your request_token, so paste it below. | |
3. `$ python moves-fetch.py --accesstoken` will output access token to stdout. | |
Copy the token and paste it below. |
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
#include <MIDI.h> | |
// http://playground.arduino.cc/Main/MIDILibrary | |
// MIDI shield configuration | |
#define KNOB1 0 | |
#define KNOB2 1 | |
#define BUTTON1 2 | |
#define BUTTON2 3 | |
#define BUTTON3 4 | |
#define STAT1 7 // Status LED |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>KainokiKaede Original Settings</name> | |
<item> | |
<name>DTM</name> | |
<item> | |
<name>Place Modifiers to Numpad</name> | |
<appendix>Numpad 1 to Option (KeyToKey)</appendix> | |
<appendix>Numpad 4 to Shift (KeyToKey)</appendix> |
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
; KainokiKaede's settings: | |
NumLock::Escape | |
Numpad1::LAlt | |
Numpad4::LShift | |
Numpad7::LControl | |
; Prevent Enter from being taken by plugins. | |
NumpadEnter::Space | |
NumpadIns::Numpad0 |
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
'''Usage: hold at your favorite photo | |
and copy the URL, then press Done. | |
''' | |
username = 'kainokikaede' | |
# Download base58 module from here and place it in the same directory: | |
# https://gist.github.com/mursts/2247355 | |
from base58 import Base58 |
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
#! python2 | |
# APN file local installer | |
# Creates local HTTP server to serve APN file. | |
# Place APN file in the same directory of this script. | |
# If "address already in use" shown, re-run the script. | |
# | |
# Based on: File Transfer for Pythonista | |
# File Transfer for Pythonista | |
# ============================ | |
# This script allows you to transfer Python files from |
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
# coding: utf-8 | |
import ui | |
import clipboard | |
from console import hud_alert | |
aa_list = ["٩( 'ω' )و", | |
'₍₍⁽⁽(ી(◔‿ゝ◔)ʃ)₎₎⁾⁾', | |
'(◔‸◔ )', |
OlderNewer