Skip to content

Instantly share code, notes, and snippets.

View itsbalamurali's full-sized avatar
🎯
Focusing

Balamurali Pandranki itsbalamurali

🎯
Focusing
View GitHub Profile
@itsbalamurali
itsbalamurali / proxy.py
Created October 24, 2014 11:59
proxy
#! /usr/bin/env python
import os, socket, thread, select
__version__ = '0.1.0 Draft 1'
BUFLEN = 8192
VERSION = 'Python Proxy/'+__version__
HTTPVER = 'HTTP/1.1'
class ConnectionHandler:
@itsbalamurali
itsbalamurali / List.md
Last active August 29, 2015 14:08 — forked from msurguy/List.md

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@itsbalamurali
itsbalamurali / seo backlinks
Created November 17, 2014 17:56
seo backlinks
float temp;
int tempPin = 0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
temp = analogRead(tempPin);
temp = temp * 0.48828125;
[{"name":"docs","color":"Red","position":{"x":376,"y":25},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"uploaded_by","type":"integer","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c27","order":0},{"name":"filename","type":"string","length":"150","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c35","order":1},{"name":"for_user","type":"integer","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c43","order":2}],"relation":[],"seeding":[]},{"name":"users","color":"Green","position":{"x":72,"y":82},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"firstname","type":"string","leng

Use node to handle file upload

Edit
# https://gist.github.com/6159923.git
[email protected]:6159923.git

git clone $gist blip_upload
# OR
git remote add origin $gist

Use node to handle file upload

Edit
# https://gist.github.com/6159923.git
[email protected]:6159923.git

git clone $gist blip_upload
# OR
git remote add origin $gist
[{"name":"farmers","color":"Red","position":{"x":100,"y":100},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"first name","type":"string","length":"50","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c32","order":0},{"name":"lastname","type":"string","length":"50","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c40","order":1},{"name":"gender","type":"enum","length":"","defaultvalue":"","enumvalue":"'m','f','o'","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c48","order":2},{"name":"aadhar_no","type":"bigInteger","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":fals
@itsbalamurali
itsbalamurali / client.coffee
Last active August 29, 2015 14:27 — forked from 2fours/client.coffee
piping form part stream directly to pkgcloud rackspace upload hangs
request = require 'request'
fs = require("fs")
baseUri = "http://localhost:8000"
r = request.post baseUri + "/images", (err, res, body) ->
if err
console.log err
form = r.form()
form.append "image", fs.createReadStream("testImage")
@itsbalamurali
itsbalamurali / MyApp.java
Created December 10, 2015 20:43 — forked from artem-zinnatullin/MyApp.java
If you need to set one font for all TextViews in android application you can use this solution. It will override ALL TextView's typefaces, includes action bar and other standard components, but EditText's password font won't be overriden.
public class MyApp extends Application {
@Override
public void onCreate() {
TypefaceUtil.overrideFont(getApplicationContext(), "SERIF", "fonts/Roboto-Regular.ttf"); // font from assets: "assets/fonts/Roboto-Regular.ttf
}
}