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
#!/usr/bin/env python | |
import os | |
import re | |
import sys | |
from PIL import Image | |
HOME = os.environ['HOME'] |
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
wget https://www.python.org/ftp/python/3.4.5/Python-3.4.5.tgz | |
tar -zxvf Python-3.4.5.tgz | |
cd Python-3.4.5/ | |
./configure --with-pydebug --prefix=/home/<USERNAME>/<LOCALPROGRAMDIR> | |
make altinstall -s -j<CPU_CORES--CHECK_WITH_NPROC_TO_SEE_HOW_MANY_YOU_HAVE> | |
ln -s /home/USERNAME/<LOCALPROGRAMDIR>/python3.4 /home/USERNAME/<LOCALPROGRAMDIR>/python3 | |
# DONE -- make sure your path looks in /home/<USERNAME>/<LOCALPROGRAMDIR> first | |
# e.g. echo "export PATH=/home/<USERNAME>/<LOCALPROGRAMDIR>:$PATH" >> ~/bash_profile | |
# followed by source ~/bash_profile |
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
keycode 8 = | |
!keycode 9 = Escape NoSymbol Escape | |
keycode 10 = 1 exclam 1 exclam exclamdown onesuperior | |
keycode 11 = 2 at 2 at masculine twosuperior | |
keycode 12 = 3 numbersign 3 numbersign ordfeminine threesuperior | |
keycode 13 = 4 dollar 4 dollar cent sterling | |
keycode 14 = 5 percent 5 percent EuroSign yen | |
keycode 15 = 6 asciicircum 6 asciicircum hstroke Hstroke | |
keycode 16 = 7 ampersand 7 ampersand eth ETH | |
keycode 17 = 8 asterisk 8 asterisk thorn THORN |
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
String file contents |
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 "String.h" | |
struct ListNode | |
{ | |
char* info; | |
ListNode * next; | |
ListNode( char *newInfo, ListNode * newNext ) | |
: info(newInfo), next( newNext ) | |
{ |
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 Agent import Agent | |
from collections import deque | |
from enum import Enum | |
class MyAI ( Agent ): | |
class Action (Enum): | |
CHECK_FOR_GOLD = 1 |
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
Hi Daniel, I saw this comment thread and added the feature to decode the filename before writing similar to wget's behavior. Thus option -W seemed fitting and was available. | |
so it can be used exactly like -O and -J: | |
`curl -W https://www.example.com/new%20pricing.htm` | |
> 'new pricing.htm' | |
curl -WJ http://test.greenbytes.de/tech/tc2231/attwithfnrawpctenca.asis | |
> foo-A.html |
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
const ScrollDirection = { | |
UP: 'UP', | |
DOWN: 'DOWN' | |
}; | |
function scrollListItems(elementSelector, scrollDirection) { | |
let parentElement = document.querySelector(elementSelector); | |
if (parentElement) { | |
let listItems = parentElement.querySelectorAll('li'); |