Skip to content
View background.js
chrome.webRequest.onHeadersReceived.addListener(
function (details) {
for (var i = 0; i < details.responseHeaders.length; ++i) {
if (details.responseHeaders[i].name.toLowerCase() == 'x-frame-options') {
details.responseHeaders.splice(i, 1);
return {
responseHeaders: details.responseHeaders
};
}
}
View fallback_to_global_namespace.php
<?php
namespace A\B\C;
class Exception extends \Exception {}
$a = new Exception('hi'); // $a is an object of class A\B\C\Exception
$b = new \Exception('hi'); // $b is an object of class Exception
$c = new ArrayObject; // fatal error, class A\B\C\ArrayObject not found
//http://php.net/manual/en/language.namespaces.fallback.php
View build.log
apply patch oscam-emu.patch
patching file CMakeLists.txt
patching file config.h
Hunk #1 succeeded at 1 with fuzz 2.
patching file config.sh
Hunk #4 FAILED at 344.
1 out of 5 hunks FAILED -- saving rejects to file config.sh.rej
patching file cscrypt/md5.c
View fiddle_079752.php
<?php
echo 'For Yearly ::<br/>';
$cur_datetime = new DateTime();
echo '<br/>'.date('Y-m-d');
echo '<br/>';
$app_datetime = new DateTime("2014-08-02");
echo date('2014-08-02');
echo '<br/>';
$difference = $cur_datetime->diff($app_datetime);
echo '<br/>';
View gist:07765f9ab9d869d72668
### Keybase proof
I hereby claim:
* I am 34code on github.
* I am sambehera (https://keybase.io/sambehera) on keybase.
* I have a public key whose fingerprint is 3082 BA81 100D 819F C8AB 4478 8BAE 62DC E9BA 6DDD
To claim this, I am signing this object:
View ios-8-web-app.html
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
View senz query syntax
<Query type>
#<attribute name> <attribute value>
@<receiver>
^<sender>
<digital signature>
View openpanzer-save.json
{"scenario":{"name":"Harz Mountains","maxTurns":21,"date":"1945-04-11T22:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":0,"dayTurn":0,"reinforcements":{},"map":{"rows":40,"cols":45,"map":[[{"unit":null,"airunit":null,"terrain":6,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"Harz Mountains: MOUNTAIN","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":6,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"Harz Mountains: MOUNTAIN","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":6,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"Harz Mountains: MOUNTAIN","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":6,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"Harz Mountains: MOUNTAIN","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":6,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,
View SparkGrep.scala
package spark.example
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.apache.spark.SparkConf
object SparkGrep {
def main(args: Array[String]) {
if (args.length < 3) {
System.err.println("Usage: SparkGrep <host> <input_file> <match_term>")
View MP.php
namespace Acme\AppBundle\MercadoPago;
/**
* MercadoPago Integration Library
* Access MercadoPago for payments integration
*
* @author hcasatti
*
*/
Something went wrong with that request. Please try again.