I hereby claim:
- I am MetroWind on github.
- I am metrowind (https://keybase.io/metrowind) on keybase.
- I have a public key whose fingerprint is 53D7 9D02 1875 A1EE 25DC 8897 535C FE44 3159 73CE
To claim this, I am signing this object:
import bpy | |
from mathutils import Vector | |
w = 1 # weight | |
Scale = 0.03 | |
def readCoords(filename): | |
with open(filename, 'r') as File: | |
Coords = [[float(x) * Scale for x in line.split()] for line in File] | |
return list(map(Vector, Coords)) |
#!/usr/bin/env python3 | |
# -*- coding: utf-8; -*- | |
from __future__ import print_function | |
import sys, os | |
import copy | |
import random | |
PY_LEGACY = (sys.version_info.major == 2) |
I hereby claim:
To claim this, I am signing this object:
;; -*- mode: emacs-lisp; -*- | |
;; Usage: Just type. In text-mode (and derived modes) when you type ' | |
;; and ", they will be converted to ‘’ and “”. Two dashes "--" will | |
;; be converted to an en-dash, and with an extra dash followed, they | |
;; will be converted to an em-dash. | |
;; | |
;; This also works in AUCTeX automagically(TM). Just type and let | |
;; Emacs take care of the rest. | |
;; |
tell application "iTunes" | |
set CurrentTrack to current track | |
set CurrentTitle to name of CurrentTrack | |
set CurrentArtist to artist of CurrentTrack | |
end tell | |
set SongInfo to {CurrentArtist, " — ", CurrentTitle} as string | |
set Tweet to {"#NowPlaying ", SongInfo} as string | |
set the clipboard to Tweet | |
do shell script "afplay /System/Library/Sounds/Ping.aiff" |
#!/usr/bin/env python3 | |
import sys, os | |
import zlib | |
ChunkSize = 1024*1024 | |
def crcFile(f): | |
Chunk = f.read(ChunkSize) | |
CRC = 0 |
#!/usr/bin/env python3 | |
# Usage: $0 SIZE | |
# | |
# SIZE can be string like "512k", "1G"... | |
SectorSize = 512 # Bytes | |
SIZE_UNITS = {'b': 1.0, 'c': 1.0, 'w': 2.0, 'k': 1024.0, | |
'M': 1024.0 * 1024.0, 'G': 1024.0 ** 3.0, | |
'T': 1024.0 ** 4.0, 'P': 1024.0 ** 5.0, | |
} |
import copy | |
class Sudoku(object): | |
"""The Sudoku class. Zero means blank.""" | |
Numbers = set(range(1, 10)) | |
def __init__(self, sudoku=None): | |
if sudoku: | |
self.Data = copy.deepcopy(sudoku.Data) | |
else: |
#include <iostream> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <sys/time.h> | |
typedef int Type; | |
struct Measurement | |
{ | |
double Value; |
div#content h1#firstHeading | |
{ | |
font-family: ScalaOT, Scala, Mate, Palatino, STZhongsong, "Songti SC", serif; | |
font-variant:small-caps; | |
margin-top: 1.5em; | |
} | |
div#bodyContent | |
{ | |
width: 520pt; |