Skip to content

Instantly share code, notes, and snippets.

View daonb's full-sized avatar
馃枛

benny daon daonb

馃枛
View GitHub Profile
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._
<p dir="rtl"><strong>讞讜拽 讞讜驻砖 讛诪讬讚注, 讛转砖谞"讞</strong><strong>1998-</strong><strong> </strong><sup>1</sup></p>
<p dir="rtl"><strong>1. 讞讜驻砖 诪讬讚注</strong></p>
<p dir="rtl">诇讻诇 讗讝专讞 讬砖专讗诇讬 讗讜 转讜砖讘 讛讝讻讜转 诇拽讘诇 诪讬讚注 诪专砖讜转 爪讬讘讜专讬转 讘讛转讗诐 诇讛讜专讗讜转 讞讜拽 讝讛.</p>
<p dir="rtl"><strong>2. 讛讙讚专讜转</strong><sup>4</sup><strong> </strong></p>
<p dir="rtl">讘讞讜拽 讝讛 -</p>
<p dir="rtl"><strong>"讜注讚讛 诪砖讜转驻转"</strong> - 讜注讚讛 诪砖讜转驻转 砖诇 讜注讚转 讛讞讜拽讛 讞讜拽 讜诪砖驻讟 讜讜注讚转 讛讞讜抓 讜讛讘讟讞讜谉 砖诇 讛讻谞住转;</p>
<p dir="rtl"><strong>"诪讬讚注"</strong> - 讻诇 诪讬讚注 讛诪爪讜讬 讘专砖讜转 爪讬讘讜专讬转, 讜讛讜讗 讻转讜讘, 诪讜拽诇讟, 诪讜住专讟, 诪爪讜诇诐 讗讜 诪诪讜讞砖讘;</p>
<p dir="rtl"><strong>"诪诪讜谞讛"</strong> - 诪讬 砖诪讜谞讛 诇驻讬 住注讬祝 3;</p>
<p dir="rtl"><strong>"拽讘诇转 诪讬讚注"</strong> - 诇专讘讜转 注讬讜谉, 爪驻讬讛, 讛讗讝谞讛, 讛注转拽讛, 爪讬诇讜诐, 拽讘诇转 驻诇讟 诪讞砖讘 讗讜 拽讘诇转 诪讬讚注 讘讻诇 讚专讱 讗讞专转 讘讛转讗诐 诇住讜讙 讛诪讬讚注 讜爪讜专转 讛讞讝拽转讜;</p>
<p dir="rtl"><strong>"专砖讜转 爪讬讘讜专讬转"</strong><sup>4</sup> -</p>
@daonb
daonb / wrokshop_logo
Created November 10, 2010 15:00
Logo of "The Workshop for Public Knowledge"
@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 */
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 / 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])
@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]
[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 / BakashaTmichaTOchnitMOP2015N.md
Last active April 20, 2016 22:12
讘拽砖讛 诇转诪讬讻讛 讘转讜讻谞讬转 诪讞拽专 讜驻讬转讜讞

讘拽砖讛 诇转诪讬讻讛 讘转讜讻谞讬转 诪讞拽专 讜驻讬转讜讞

谞讜讛诇 诪住: 200-02 谞住驻讞 讘 转拽祝 诪转讗专讬讱: 1 讘讗驻专讬诇 2016 诇讘拽砖讜转 诇砖谞转 2016

诪讜注讚 讛讙砖转 讛讘拽砖讛: 6102/5/22

@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__':