Skip to content

Instantly share code, notes, and snippets.

@mushon
mushon / README.md
Last active September 11, 2015 09:25
These bars are nicely grouped but they should be stacked

The bars here are nicely grouped ordinally by "saif" (top level item) categories which is something I actually wanted to achieve but the bars in each of these ordinal categories overlap rather than stack. I made them 0.2 transparent so this can be easily tracked. I would love to get some guidance as to how may I be able to aggregate the total per 'saif' and to stack them accordingly.

@mushon
mushon / README.md
Last active September 3, 2015 14:47
Top items in the 2016 Israeli budget proposal as senseless barchart

This gist presents the top level items in the Israeli budget proposal for 2016 broken by expenditure type. The bar chart is an early experiment towards a more elaborate and comprehensive visualization. The tooltip structure translates to: The 2016 budget for [budget item title] of type [group first hierarchy level] / [group second hierarchy level] is [sum] in NIS (₪).

Data source: http://data.obudget.org/queries/225/source

Data exploration in Tableau: https://public.tableau.com/profile/mushon#!/vizhome/2016/Story2

@mushon
mushon / 2014-edu-budget-original.csv
Last active August 27, 2015 14:22
2014 Israeli Education Budget Data
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 13 columns, instead of 7. in line 8.
2dig-code,2dig-title,4dig-code,4dig-title,6dig-code,6dig-title,8dig-code,8dig-title,type1-code,type1-title,type2-code,type2-title,net
20,משרד החינוך,2021,יחידות מטה,202102,פעולות לשכת הדובר,20210241,פעולות לשכת הדובר,2,קניות,33,קניות בארץ,2528
20,משרד החינוך,2021,יחידות מטה,202102,פעולות לשכת הדובר,20210243,"השתתפות נציגי המשרד בארועים בינ""ל בחו""ל",2,קניות,33,קניות בארץ,69
20,משרד החינוך,2021,יחידות מטה,202103,פעולות החשב,20210341,השתתפות במשרד האוצר עבור בדיקת שחיקת מורים,19,העברות פנים תקציביות,300,השתתפויות,52
20,משרד החינוך,2021,יחידות מטה,202103,פעולות החשב,20210343,פעולות החשב,2,קניות,33,קניות בארץ,0
20,משרד החינוך,2021,יחידות מטה,202103,פעולות החשב,20210345,רכישת שירותים לחישובי שכר,2,קניות,33,קניות בארץ,9100
20,משרד החינוך,2021,יחידות מטה,202103,פעולות החשב,20210347,קנית שרותי חוץ למחלקת הכספים,2,קניות,33,קניות בארץ,110
20,משרד החינוך,2021,יחידות מטה,202103,פעולות החשב,20210349,תשלום פסקי דין ופיצויים,3,העברות,34,תשלומי העברה סוציאליים,453
20,משרד החינוך,2021,יחידות מטה,202103,פעולות החשב,20210399
@mushon
mushon / turbulence_svg.html
Last active August 27, 2015 13:19
Turbulence logo in SVG markup
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Turbulence.org logo in SVG (excersize)</title>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:400);
body{font-family: "Roboto Condensed", sans-serif; }
svg {background-color: black;}
</style>
@mushon
mushon / Every_transfer to EDU in 2014 (by transfer)_2015_08_20.csv
Created August 20, 2015 18:20
Every financial transaction to the Ministry of Education in the Israeli budget for 2014. Data source: http://data.obudget.org/queries/218
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 10 columns, instead of 5. in line 9.
leading_item,req_code,req_title,date,item,budget_title,net_allocated,net_changes,net_revised,perc
20,5,העברת 50% מעודפי משרד החינוך,25/03/2014,202418,חינוך לדמוקרטיה ויהדות,0.0,7059000.0,8808000.0,705900000.0
20,9,פניה תחילת שנה וגידול טבעי,24/06/2014,202420,הטמעת הרפורמה במערכת החינוך,0.0,5041000.0,7939000.0,504100000.0
20,5,העברת 50% מעודפי משרד החינוך,25/03/2014,202813,"ביה""ס הממשלתי כדורי",0.0,3058000.0,5992000.0,305800000.0
20,5,העברת 50% מעודפי משרד החינוך,25/03/2014,202420,הטמעת הרפורמה במערכת החינוך,0.0,2968000.0,7939000.0,296800000.0
20,9,פניה תחילת שנה וגידול טבעי,24/06/2014,202418,חינוך לדמוקרטיה ויהדות,0.0,2239000.0,8808000.0,223900000.0
20,6,השלמה ל 80% עודפים,27/05/2014,202813,"ביה""ס הממשלתי כדורי",0.0,1833000.0,5992000.0,183300000.0
20,8,השלמה ל-98% עודפים,26/05/2014,202418,חינוך לדמוקרטיה ויהדות,0.0,1754000.0,8808000.0,175400000.0
20,17,"פניית תחילת שנת הלימודים תשע""ה",30/09/2014,202418,חינוך לדמוקרטיה ויהדות,0.0,-1745000.0,8808000.0,174500000.0
20,8,השלמה ל-98% עודפים,26/05/2014,202813
@mushon
mushon / obudget-org_every_transfer_2014.csv
Last active August 29, 2015 14:27
Every financial transaction in the Israeli budget for 2014. Data source: http://data.obudget.org/queries/216
We can't make this file beautiful and searchable because it's too large.
leading_item,req_code,req_title,date,substring,budget_title,net_allocated,net_changes,net_revised,perc
15,18,שינוי תקציבי,09/12/2014,470102,תוכנית מעבר - רזרבה כללית,0.0,-2500000000.0,800000.0,250000000000.0
47,6,הפחתה בתקציב מס' 3,04/11/2014,470102,תוכנית מעבר - רזרבה כללית,0.0,1881275000.0,800000.0,188127500000.0
15,14,תוספת לתקציב הביטחון,04/11/2014,470102,תוכנית מעבר - רזרבה כללית,0.0,-1750000000.0,800000.0,175000000000.0
24,18,פניית סוף שנה משרד הבריאות,21/12/2014,470102,תוכנית מעבר - רזרבה כללית,0.0,-1678825000.0,800000.0,167882500000.0
15,17,העברת עודפים לא מחוייבים לתקציב הביטחון,08/12/2014,470102,תוכנית מעבר - רזרבה כללית,0.0,-1135338000.0,800000.0,113533800000.0
15,12,העברה לתקציב הביטחון,13/08/2014,470102,תוכנית מעבר - רזרבה כללית,0.0,-1010754000.0,800000.0,101075400000.0
15,24,תוספת תקציב בגין 'צוק איתן',22/12/2014,470102,תוכנית מעבר - רזרבה כללית,0.0,-939559000.0,800000.0,93955900000.0
83,6,העברת 80% מעודפי תקציב 2013,17/09/2014,830112,השתתפות בהלוואות לעובדימדינה,0.0,9197300
[
{
"id": 231,
"title": "טוטו ווינר - המועצה להסדר ההימורים בספורט - Toto Winner",
"attempts": 0,
"visitedTs": 1432468214275,
"foundTs": 1432468188045,
"contentData": {
"src": "http://xwbe.wcdn.co.il/C6BE7BC4/E42E67B8.jpg"
},
@mushon
mushon / index.html
Last active August 29, 2015 14:11 — forked from anonymous/index.html
prototype for Turbulence homepage
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
margin: 0;
}
.container {
width: 100%;
}
.container > header,
@mushon
mushon / yanh.php
Created June 1, 2011 05:19
XML-RPC for the You Are Not Here project
<?php
//calls the PHP XML-RPC library we're using:
include('IXR_Library.inc.php');
define_syslog_variables();
openlog("[GAZA XML SERVER]", LOG_PID | LOG_PERROR, LOG_LOCAL2);
class SimpleServer extends IXR_Server {
function SimpleServer() {
@mushon
mushon / Redpyramids.php
Created May 28, 2011 13:53 — forked from talstadler/Redpyramids
adding thumbnails
<?php
// Custom Child Theme Functions
// First we make our function
function childtheme_welcome_blurb() {
if (is_home() & !is_paged()) { ?>