Skip to content

Instantly share code, notes, and snippets.

View daonb's full-sized avatar
🖖

benny daon daonb

🖖
View GitHub Profile
@daonb
daonb / release.txt
Created March 9, 2021 07:11
Terminal7 & webexec Releases Terminal7 & webexec Releases
2020-04-26 11:20:45 +0300 (tag: 0.1.0) webexec
2020-06-21 10:02:47 +0300 (tag: 0.1.1) webexec
2020-06-29 17:10:27 +0300 (tag: 0.2.0) webexec
2020-07-01 13:29:25 +0300 (tag: 0.2.0) terminal 7
2020-07-08 10:55:39 +0300 (tag: 0.3.0) terminal 7
2020-07-19 10:42:06 +0300 (tag: 0.3.1) terminal 7
2020-07-20 11:29:11 +0300 (tag: 0.3.2) terminal 7
2020-07-29 13:29:17 +0300 (tag: 0.5.1) terminal 7
2020-08-02 15:54:31 +0300 (tag: 0.2.1) webexec
2020-08-04 08:07:09 +0300 (tag: 0.5.2) terminal 7
@daonb
daonb / tweepy_runner.py
Created November 13, 2017 20:43 — forked from MihaiTabara/tweepy_runner.py
Script to download Twitter timeline for a user and store it to MongoDB
# script to download up to <= 3200 (the official API limit) of most recent tweets from a user's timeline
from pymongo import MongoClient
import tweepy
import json
#Twitter API credentials
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_TOKEN = ''
@daonb
daonb / test_cm.py
Last active November 28, 2016 08:54
Failing on Authentication
'''
ClearMash API Tests
Playing with ClearMash SOAP API. To use, first `pip install zeep` and then `python test_cm.py`
'''
from zeep import Client
if __name__ == '__main__':
@daonb
daonb / BakashaTmichaTOchnitMOP2015N.md
Last active April 20, 2016 22:12
בקשה לתמיכה בתוכנית מחקר ופיתוח

בקשה לתמיכה בתוכנית מחקר ופיתוח

נוהל מס: 200-02 נספח ב תקף מתאריך: 1 באפריל 2016 לבקשות לשנת 2016

מועד הגשת הבקשה: 6102/5/22

[45.79.105.143] out: The authenticity of host 'github.com (192.30.252.128)' can't be established.
[45.79.105.143] out: RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
[45.79.105.143] out: Are you sure you want to continue connecting (yes/no)?
@daonb
daonb / tomer.py
Created November 3, 2014 08:26
getting some votes in one csv
'''
to make this work you need to have Open-Knesset source and latest db file
from the shell type::
$ python manage.py shell_plus
In [1]: ed tomer.py
'''
import json, urllib2
votes=[6904,7454,6786]
@daonb
daonb / donation_parse.py
Created May 8, 2012 09:01
summary of donations raised
import csv
sum_nis = 0; num_nis = 0
sum_usd = 0; num_usd = 0
for i in csv.reader(open("donations.csv")):
if i[2]:
sum_usd+=float(i[2][:-4].replace(",",""))
num_usd+=1
else:
sum_nis+=int(i[1])
function parseResponse(data) {
var bookshelf = document.getElementById("bookshelf");
for (var i=0; i<6; i++) {
var cover = data.reader_books[i].book_edition.covers.cover_medium;
var title = data.reader_books[i].book_edition.title;
var permalink = data.reader_books[i].permalink;
var link = document.createElement("a");
link.setAttribute("href",permalink);
@daonb
daonb / pkw_logo.html
Created November 10, 2010 15:01
the logo for the Public Knowledge Workshop
<html>
<head>
<script type="application/javascript">
function draw() {
var canvas = document.getElementById("canvas");
if (canvas.getContext) {
var ctx = canvas.getContext("2d");
var r = 150; /* the logo's radius in pixels */
var edge = Math.PI/13; /* size of half a typical's line edge in radians */
var base = edge*3; /* size of half of the base in radians */
@daonb
daonb / wrokshop_logo
Created November 10, 2010 15:00
Logo of "The Workshop for Public Knowledge"