Skip to content

Instantly share code, notes, and snippets.

View sash13's full-sized avatar

Aleksander Ryzhkov sash13

  • Kyiv, Ukraine
  • 08:47 (UTC +02:00)
View GitHub Profile
$(document).ready(function(){
$(".add2list").hide();
$('#staff').combobox({
'input': true,
'style': 'ui-combo-light'
// ,'ajax': '/profiler/form/autocomplete.json/'+$(this).attr('field')
});
// ** show
$("#staff_enabler").bind('click', function(){
$("#staff").show();
Flash Type: F648
File ID: 0x0FF0AA55
Vendor ID: 0x10D6
Product ID: 0x1101
Version: 9.0.43
Date: 01/09/2005
Info: SDK-ITEM/ACTIONSGongee.ZH
Manufacturer: Wilson Co. Ltd.
Device Name: LISONG MP3 Player
USB Attribute: GENERIC
@sash13
sash13 / DPF AppoTech
Created February 6, 2012 15:18
lsusb -v
dmesg
[ 1421.101264] scsi6 : usb-storage 2-2:1.0
[ 1422.111873] scsi 6:0:0:0: CD-ROM buildwin Photo Frame 1.01 PQ: 0 ANSI: 2
[ 1422.127874] sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
[ 1422.128575] sr 6:0:0:0: Attached scsi CD-ROM sr1
[ 1422.128941] sr 6:0:0:0: Attached scsi generic sg2 type 5
lsscsi
[5:0:0:0] cd/dvd buildwin Photo Frame 1.01 /dev/sr1
@sash13
sash13 / nya.py
Created May 4, 2012 12:39
Скачивать ништяки мангу с сайтов ня
import urllib
import urllib2
import os
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
headers = { 'User-Agent' : user_agent }
def getImages(urls, dirName):
try:
@sash13
sash13 / main.pde
Created June 10, 2012 15:33
Кот ардуинки и сервачка на компе
const int pin1 = 8;
const int pin2 = 7;
const int pin3 = 6;
const int pin4 = 5;
const int pin6 = 4;
const int pin7 = 3;
const int pin9 = 2;
const int ledPin = 13;
int pin1m = 0;
from urllib2 import (OpenerDirector,HTTPRedirectHandler, UnknownHandler, HTTPHandler,
HTTPDefaultErrorHandler, HTTPErrorProcessor, HTTPCookieProcessor, HTTPError, HTTPSHandler )
import lxml.html
import urllib, urllib2, cookielib, os, time, MultipartPostHandler
import poster
cook = '.cook'
email_my = ''
pass_my = ''
use_a = 'Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1'
@sash13
sash13 / main.py
Created June 29, 2012 15:23
pythonS60 G:plus
#coding:utf-8
from appuifw import *
import e32
import os
import urllib, urllib2, cookielib, time
if e32.in_emulator():
imagedir=u'c:\\images'
else:
imagedir=u'e:\\images'
def input_parse(base):
query = 'input '
input_parts = {}
sta=0
while sta !=-1:
sta=base[1:].find(query)
if sta == -1:
break
sta_len = sta+len(query)
end = base[sta_len:].find('>')+sta_len
import Image
def getBit(num, pos):
return (num & (1 << pos)) >> pos
def numToBit(inN):
out = []
for i in xrange(8):
out.append(getBit(inN,i))
return out
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/wdt.h>
//#include <avr/eeprom.h>
#include <util/delay.h>
#include <avr/pgmspace.h>
#include <string.h>
#include "usbdrv.h"