Skip to content

Instantly share code, notes, and snippets.

View cool-RR's full-sized avatar

Ram Rachum cool-RR

View GitHub Profile
#!python
import time
import sys
import pathlib
import traceback
import shpaml
import watchdog.observers
import watchdog.events
launcher build: 32bit
launcher executable: Console
Using local configuration file 'C:\Users\Administrator\AppData\Local\py.ini'
File 'C:\Windows\py.ini' non-existent
Called with command line: age.py
maybe_handle_shebang: read 256 bytes
maybe_handle_shebang: BOM not found, using UTF-8
parse_shebang: found command: python
searching PATH for python executable
Python on path: C:\python34\python.EXE
launcher build: 32bit
launcher executable: Console
File 'C:\Users\Administrator\AppData\Local\py.ini' non-existent
File 'C:\Windows\py.ini' non-existent
Called with command line: age.py
maybe_handle_shebang: read 256 bytes
maybe_handle_shebang: BOM not found, using UTF-8
locating Pythons in 64bit registry
locate_pythons_for_key: unable to open PythonCore key in HKCU
locate_pythons_for_key: C:\Python27\python.exe is a 64bit executable
launcher build: 32bit
launcher executable: Console
Using local configuration file 'C:\Users\Administrator\AppData\Local\py.ini'
File 'C:\Windows\py.ini' non-existent
Called with command line: age.py
maybe_handle_shebang: read 256 bytes
maybe_handle_shebang: BOM not found, using UTF-8
locating Pythons in 64bit registry
locate_pythons_for_key: unable to open PythonCore key in HKCU
locate_pythons_for_key: C:\Python27\python.exe is a 64bit executable
encrypt('\x00')
'7\xceo\x8b\xdf\x1e\xce\x1egq\xd6\x1f4w\xc4\xeeq\xcf7\x93\xa0'
encrypt('\x01\x02\x03\x04')
'\x06\t`\xea\xf8u]G\xab\x14\xf6)H\xce\xe0\xed\x01\x03xu[\xb4\xa7\x88'
encrypt('\xFF')
'\r)R\x88\xf8V=\x9a\xa62Hu\xb3\xeaz\x9c\x84\x13!\xf6\xcd'
encrypt('\xFFFF')
'\x88\xc4\x1c\xb3\xf2\x95\xfd\x19\x8f\x03Q\xd4J\x1a\xf4\xbeM\xb5&\xd34\x1cR'
encrypt("".join(map(chr, xrange(256))))
'^x\xb8\xd2\xb8\xa9:\xf0\x15\x90\xabD\xe6G\xf8\xd0\xcf\xf6c\xe3\xe1 G\x9b\x0c\x90>v\x19\x9ak\x8c\xa1\xb2\x075\x83\xb6:J(\xa3\x1c4\xb3\xb65Qu\x98<\xeb|E\'1q,\x83\xf6\xaeU\x15\x11\xbb\xe2\x82v\x03\xf1\xf4\xb8qN\x8a\x85\x84\xbdu\xb0H\x11\xcf\xa6\\\xda\x95\xdbG\xe7\xf3[\xd4\x94C\xff( \xc2\xaa\xa3^k\x07\x01\xf92\x052\x12\x97j\x94\xeb\xdf\xa9o\x87\xfe~\x9f\xa4\xe5,\xc8s"\xe4\xa6\xb7Z\xe7b\xbcrpM,H\xbf\x8a7L1\xb5\xd6s?[\x1cB\xb8Zs\x06\xff\x8bBs\xdf\xe4#\x84QA\xb2wpI\xff\xeb\xb2s\x0e\xbc\x86\x84\xfa\xa6\x93q\x83O\xdfj_8P\xd4\xe1\x85\xe2\xdf\xe1j\x86\n\xf3v\xfc\xcb4\xca\x86\x06\x8d\x08\xe8v\x0b<\x9a<2Q\x1e\xe3\x9e\xf3\x8e\xec\xf2\xa8\x9a#$
#!bash
if [ -n "$2" ]; then
export SOURCE=$1 ;
export DESTINATION=$2 ;
else
export SOURCE=HEAD ;
export DESTINATION=$1 ;
fi
export GIT_INDEX_FILE=`git rev-parse --show-toplevel`/.git/aux-merge-index ;
@cool-RR
cool-RR / new_age_1.py
Created June 22, 2016 17:19
Python concurrency
#!python
import math
import sys
import concurrent.futures
import requests
def get_age(name):
processed_name = name.replace(' ', '_')
$ git ls-remote b HEAD
045fad20dbe1a6e46980365133b5c35b54b1b9f4 HEAD
99be20a8a2514eca0e6ac3803fd26297db704a59 refs/remotes/origin/HEAD
@cool-RR
cool-RR / gist:3ad9d0edfdfbe5fa5aea30d36f8b43d6
Created September 18, 2017 16:45
Multicolor experiment
; G-Code generated by Simplify3D(R) Version 4.0.0
; Sep 18, 2017 at 7:06:03 PM
; Settings Summary
; processName,Process1-1
; applyToModels,Multicolor experiment
; profileName,Ram's Prusa
; profileVersion,2017-08-18 10:56:04
; baseProfile,Default
; printMaterial,PLA
; printQuality,High
import numbers
import struct
import pathlib
import math
import abc
import wave as wave_module
import itertools
import re
import sortedcontainers