Skip to content

Instantly share code, notes, and snippets.

View artfisica's full-sized avatar
😃
get in touch: arturos@domoart.ch

ArturoS artfisica

😃
get in touch: arturos@domoart.ch
View GitHub Profile
@cjus
cjus / jsonval.sh
Created June 26, 2011 17:42
Extract a JSON value from a BASH script
#!/bin/bash
function jsonval {
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop`
echo ${temp##*|}
}
json=`curl -s -X GET http://twitter.com/users/show/$1.json`
prop='profile_image_url'
picurl=`jsonval`
@artfisica
artfisica / opendata.cpp
Last active June 2, 2017 00:11
ATLAS OpenData
// The ATLAS OpenData Project
// http://opendata.atlas.cern
#include "ATLAS_public_datasets.h"
#include "ATLAS_public_analysis_tools.h"
#include "ATLAS_members_hard_work.h"
#include "hundreds_of_hours.h"
void main() {
bool ATLAS_Experiment = false;