Skip to content

Instantly share code, notes, and snippets.

🚲
Inventing

Alexey Novikov velocityzen

🚲
Inventing
Block or report user

Report or block velocityzen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@velocityzen
velocityzen / auth.py
Created Sep 26, 2011
This script take pictures from directory and post it to tumblr blog and then delete it. Tumblr API v2! This example for oath file upload.
View auth.py
import urlparse
import oauth2 as oauth
consumer_key = ''
consumer_secret = ''
request_token_url = 'http://www.tumblr.com/oauth/request_token'
access_token_url = 'http://www.tumblr.com/oauth/access_token'
authorize_url = 'http://www.tumblr.com/oauth/authorize'
@velocityzen
velocityzen / cookie.js
Created Dec 19, 2012
LocalStorage cookie emulation for using in iframes for example.
View cookie.js
View font-face-mixing.less
.font (@font-name, @font-file, @font-weight: normal, @font-style: normal) {
@font-face {
font-family: @font-name;
src:url('../fonts/@{font-file}.woff2') format('woff2'),
url('../fonts/@{font-file}.woff') format('woff'),
url('../fonts/@{font-file}.ttf') format('truetype');
font-weight: @font-weight;
font-style: @font-style;
}
}
@velocityzen
velocityzen / puller
Created Oct 22, 2013
git pull in all sub directories. good for refreshing big projects.
View puller
#!/bin/bash
current_dir=`pwd`/
dir=$current_dir
usage="Usage : `basename $0` [-d dir] [-h] args\nWhere args are directories that you don't whant to pull"
while getopts hd: opt; do
case $opt in
d)
if [ ! -d $OPTARG ] ; then
View TBezierInterpolation.cpp
#include <vector>
#include <iostream>
#include <cmath>
using namespace std;
#define EPSILON 1.0e-5
#define RESOLUTION 32
class Point2D
You can’t perform that action at this time.