Skip to content

Instantly share code, notes, and snippets.

View flufy3d's full-sized avatar
🎯
Focusing

flufy3d flufy3d

🎯
Focusing
View GitHub Profile
@flufy3d
flufy3d / get_url_test
Created June 13, 2012 04:51
python3 get url test example code
import urllib.request
from time import sleep
url="http://172.17.73.206/st/index.php?action=s"
while 1:
try:
sleep(0.1)
print('get http://172.17.73.206/st/index.php?action=s')
response=urllib.request.urlopen(url)
@flufy3d
flufy3d / mongoose_usage
Created June 27, 2012 05:43
mongoose usage
var mongoose = require('mongoose');
console.log('Started database connection, waiting for it to open');
var db_connect_timeout = setTimeout(function() {
console.log('Failed to connect database!');
//throw 'Failed to connect database!'
}, 10000);
mongoose.connect('mongodb://127.0.0.1/my_database');
console.log(mongoose.connection.host);
@flufy3d
flufy3d / npm_install
Created June 29, 2012 03:52
npm install specified version module
npm install express@2.5.8 -g
@flufy3d
flufy3d / jquery_tips
Created June 29, 2012 04:16
jquery append or replace html content
//$("#debug").append(dt + '<br/>');
//$("#debug").html(dt + '<br/>');
@flufy3d
flufy3d / jitsubug
Created July 3, 2012 06:04
jitsu deploy log
E:\github\deliverance\client>jitsu deploy
info: Welcome to Nodejitsu flufy3d
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in app.js
warn: Local version appears to be old
warn: Your package.json version will be incremented for you automatically
warn: About to write E:\github\deliverance\client\package.json
data:
data: {
@flufy3d
flufy3d / url
Created July 21, 2012 05:16
xcode4.3.3 real debug
http://kqwd.blog.163.com/blog/static/4122344820117191351263/
http://stargrain.iteye.com/blog/1601170
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
sudo vim SDKSettings.plist
此时进入vim文件编辑状态(会提示password 输入Mac登陆密码后回车)
(注:i 进入Insert状态,修改完成后按ESC键退回到命令状态,Q退出 :w 保存 :q 退出)
修改
<key>CODE_SIGNING_REQUIRED</key>
@flufy3d
flufy3d / vlc
Created August 21, 2012 08:37
vlc cmd line
vlc -vv --extraintf=logger --intf="telnet" dshow:// :dshow-vdev="Logitech HD Pro Webcam C910" :dshow-adev= :dshow-size=640x480 :live-caching=100 :sout=#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:http{mux=asf,dst=:8080/} :sout-all :sout-keep
pause
@flufy3d
flufy3d / visualization_in_js.md
Created August 24, 2012 02:52 — forked from entaroadun/visualization_in_js.md
Visualization using Javascript on Github

Data visualization in one of three most important steps in data mining (https://github.com/entaroadun/hnpickup#readme). Often times, it's impossible to understand data without proper visualization. I went looking for great tools to do that.

One in china http://datavlab.org/2012/08/23/3385

Two website list recent JS visualization frameworks:

@flufy3d
flufy3d / iosmain
Created September 3, 2012 07:53
ios you need perform execution on main thread
[self performSelectorOnMainThread:@selector(imp_target_detect) withObject:0 waitUntilDone:NO];
@flufy3d
flufy3d / xshanhome
Created September 3, 2012 14:44
xshanhome ip address
222.128.144.137