Skip to content

Instantly share code, notes, and snippets.

View Palleas's full-sized avatar

Romain Pouclet Palleas

View GitHub Profile
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="[email protected]"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@Palleas
Palleas / oclint.rb
Last active December 19, 2015 13:59 — forked from dlackty/oclint.rb
require 'formula'
class Oclint < Formula
homepage 'http://oclint.org'
url 'http://archives.oclint.org/nightly/oclint-0.9.dev.3f9355e-x86_64-darwin-12.4.0.zip'
version '0.9'
sha1 '538f4210db2054a42f8d9334929cd742b72d13c6'
depends_on 'llvm'
var foo:Function = function(remove:String) : Function {
var remove : String = remove;
return function (item:*, index:int, array:Array) : Boolean {
return (item != remove);
};
}
var trueMan : Function = foo('water');
var liquor : Array = ['water','whisky', 'beer'];
<?php
class Car
{
protected $oilLevel;
protected function checkOilLevel()
{
echo "oil level checked : ";
echo $this->oilLevel;
echo "\n";