Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Intrepidd's full-sized avatar
🍽️
Hello

Adrien S Intrepidd

🍽️
Hello
View GitHub Profile
@Intrepidd
Intrepidd / gist:1307618
Created October 23, 2011 17:34
Facebook delete all apps, quite uggly.
// Assuming you have Jquerified the page
// http://www.learningjquery.com/2009/04/better-stronger-safer-jquerify-bookmarklet
function deleteApp(tab, index) {
tab[index].click();
setTimeout(function() {
$jq("input[name=remove]").click();
setTimeout(function() {
$jq("input[name=ok]").click();
if (tab[index + 1]) {
@Intrepidd
Intrepidd / gist:1149818
Created August 16, 2011 18:41
PHP + graphviz
php -v :
Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gv.so' - /usr/lib64/php/modules/gv.so: undefined symbol: zend_error_noreturn in Unknown on line 0
PHP 5.3.6 (cli) (built: Mar 23 2011 13:12:50)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
Fedora 15
@Intrepidd
Intrepidd / klass.cpp
Created July 25, 2011 14:31
C++ static
WIP
<?php
class ParentClass {
protected $a = 1;
public function doSomething() {
echo "I'm the parent";
$this->a = 2;
}
}