Skip to content

Instantly share code, notes, and snippets.

View danilo04's full-sized avatar

Danilo Domínguez Pérez danilo04

View GitHub Profile
@danilo04
danilo04 / reloj.php
Created April 5, 2011 03:44
Par parser
<?php
class RelojEntry {
protected $numReloj;
protected $userId;
protected $date;
public function __set($name, $value) {
$this->$name = $value;
}
@danilo04
danilo04 / getreactive.py
Last active August 29, 2015 14:07
Get the reactive callbacks in Android API
#!/usr/bin/python
import os
import sys
from bs4 import BeautifulSoup
from urllib2 import urlopen
import cgi
import csv
def fromurltoname(url):
@danilo04
danilo04 / deploysoot.sh
Created September 17, 2014 15:10
Deploy Soot
#!/usr/bin/env sh
#
# author: Quentin Sabah
# modified: Danilo Dominguez Perez
#
deploy_dir=$PWD
jasmin_repo=http://github.com/Sable/jasmin.git
jasmin_branch=develop
; restart before running this
dpkg --get-selections | \
grep 'linux-image*' | \
awk '{print $1}' | \
egrep -v "linux-image-$(uname -r)|linux-image-generic" | \
while read n
do
sudo apt-get -y remove $n
done
class TestActivity extends Activity {
private mFilename;
public void onCreate(Bundle paramBundle) {
Intent localIntent = getIntent();
this.mFilename = localIntent.getData().toString();
}
protected void onDestroy() {
StringBuilder localStringBuilder;