This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* jQuery JavaScript Library v1.5.1 | |
* http://jquery.com/ | |
* | |
* Copyright 2011, John Resig | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license | |
* | |
* Includes Sizzle.js | |
* http://sizzlejs.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route('/socket.io/websocket') | |
def socketio(): | |
s = request.environ['socketio'] | |
if s.on_connect(): | |
#print 'CONNECTED', locals() | |
#s.send({'buffer': buffer}) | |
#s.broadcast({'announcement': s.session.session_id + ' connected'}) | |
pass | |
game_id=None;game=None;cook=None;i_am='spectator';rdsub = redis.Redis('localhost') | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route('/socket.io/websocket') | |
def socketio(): | |
s = request.environ['socketio'] | |
if s.on_connect(): | |
#print 'CONNECTED', locals() | |
#s.send({'buffer': buffer}) | |
#s.broadcast({'announcement': s.session.session_id + ' connected'}) | |
pass | |
game_id=None;game=None;cook=None;i_am='spectator';rdsub = redis.Redis('localhost') ; listener_trd = None | |
#redis sub listener |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////////////////////////////////////////////// | |
// Batch Export Unlocked Layers v1 -- CS5 | |
//>=-------------------------------------- | |
// This script will generate a separate raster image for every UNLOCKED layer in your .ai file. (Only tested on PC) | |
// | |
// Locked images will be left as is. | |
// To <b>hide</b> any layer; | |
// Lock it, and hide it on the Layers palate before running this script. | |
// | |
// To <b>include</b> a layer in every image: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="article-content"> | |
<div style="float: right; width: 300px; border: 0px none;"><img height="435" width="295" alt="instax_mini" src="/images/stories/about/welcome/instax_mini.png"></div> | |
<!-- WHAT YOU NEED ADDED --> | |
<div style='float:left; max-width:50%;'> | |
<p dir="rtl" style="text-align: right;">צילום מיידי (Instant Photography) נוחת בישראל!</p> | |
<p dir="rtl" style="text-align: right;">רוצים להינות מאיכות אנלוגית? רוצים להשאיר מזכרת מוחשית לעצמכם, לחבריכם או לאנשים שפגשתם בטיול רגע לפני שהרכבת שלהם ממשיכה לכיוון הנגדי? בא לכם להנציח את הרגע ולראות את התוצאות דקות ספורות לאחר הצילום, מבלי להיעזר בשירותי מעבדת פיתוח?</p> | |
<p dir="rtl" style="text-align: right;">בעזרת טכנולוגיות מתקדמות תוכלו להתרגש מהתמונה המתפתחת הישר אל מול עיניכם, ואם זה לא מספיק - בין סוגי המצלמות השונות יש גם כאלה המאפשרות לשלב כל טריק ניסיוני עם צילום מיידי. מתרגשים כבר?</p> | |
<ul style="clear:both;"> | |
<li dir="rtl">כאן <a href="/magazine">בגיליון</a> נפרסם סיפורים ועדכונים על צילום מיידי בארץ ובחו"ל, סקירות והסברים וגם טריקים שימושיי |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import glob,os,commands,re | |
from sys import argv | |
errcnt=0 ; donecnt=0 ; skipcnt=0 | |
for fn in glob.glob('%s/*'%os.getcwd()): | |
bfn = os.path.basename(fn) | |
video=False ; sound=False | |
if re.compile('\.MP4$').search(bfn): video=True | |
if re.compile('\.WAV$').search(bfn): sound=True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gevent import monkey; monkey.patch_socket() | |
from urllib2 import Request | |
from datetime import datetime# for time measurement | |
import unittest | |
import gevent | |
import urllib2, httplib, cookielib | |
import json | |
from config import HOST_URL, PORT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys,pexpect,json,os,re | |
from commands import getstatusoutput as gso | |
def writekey(host,user,pss,key): | |
ssh_newkey = 'Are you sure you want to continue connecting' | |
# my ssh command line | |
cmd = 'ssh %s@%s mkdir -p ~/.ssh ; echo "%s" >> ~/.ssh/authorized_keys2'%(user,host,key) | |
#pexpect ssh bit taken from http://linux.byexamples.com/archives/346/python-how-to-access-ssh-with-pexpect/ | |
p=pexpect.spawn(cmd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import json,glob,os,datetime,re,sys | |
import dateutil.parser | |
from commands import getstatusoutput as gso | |
usermap = {re.compile('milez'):'[email protected]' | |
,re.compile(re.escape('[email protected]')):'[email protected]' | |
,re.compile(re.escape('dima@dima-Latitude-D820.')):'[email protected]' | |
} | |
GITHUB_USER = open('githubuser.txt','r').read().strip() |
OlderNewer