Skip to content

Instantly share code, notes, and snippets.

View press.one
https://press.one/p/address/v?s=e4a972f743ee81dcaf6402db856d24505c30f221d76ca240407896871fc4a3122fd0ea8ccbcc9d21ffa5b963e88893de59cd846607e40db1974f549a9edc08f81&h=52d8c43b9270f85fe2445ff4cd807396f753cf04b0764015fbf20d29c4cf8a1b&a=8590d7566d138474d2acf4b8207bfadfb5e79a00&f=P1&v=2
View poly-js2-web-mode.el
(defcustom pm-host/js2
(pm-bchunkmode "JS2"
:mode 'js2-mode)
"JS2 host innermode"
:group 'hostmodes
:type 'object)
(defcustom pm-inner/web
(pm-hbtchunkmode "JSX"
:mode 'web-mode
@L42y
L42y / PKGBUILD
Created Jan 28, 2015
slimerjs 0.9.5 PKGBUILD
View PKGBUILD
# Maintainer: sirajul147 <siraj [dot] mussafirr [at] gmail[dot] com>
# Contributor: L42y <423300@gmail.com>
pkgname=slimerjs
pkgver=0.9.5
pkgrel=1
pkgdesc="A PhantomJS-like tool running Gecko"
arch=('i686' 'x86_64')
url="http://slimerjs.org/"
license=(custom:'MPL2.0')
depends=(xulrunner)
@L42y
L42y / neo4j.rb
Created Oct 21, 2014
Neo4j formula include enterprise version
View neo4j.rb
require "formula"
class Neo4j < Formula
homepage "http://neo4j.org"
url "http://dist.neo4j.org/neo4j-community-2.1.5-unix.tar.gz"
sha1 "727c361e74d6a91e50b1ddc9b4ff6e61f72e39d9"
version "2.1.5"
option "enterprise", "Install enterprise version"
@L42y
L42y / gist:f49d0022fc948ec1acae
Created Aug 9, 2014
iwantmyname search blocked by itself
View gist:f49d0022fc948ec1acae
XMLHttpRequest cannot load https://search.iwantmyname.com/socket.io/?EIO=2&transport=polling&t=somerandomstring. Origin https://iwantmyname.com is not allowed by Access-Control-Allow-Origin.
View keybase.md

Keybase proof

I hereby claim:

  • I am l42y on github.
  • I am l42y (https://keybase.io/l42y) on keybase.
  • I have a public key whose fingerprint is 32EE 2746 0529 0172 5BB8 F21F E672 B970 54D0 0454

To claim this, I am signing this object:

View gist:7541519
Using config file "/etc/xen/l42y".
Started domain l42y
Xen Minimal OS!
start_info: 0xaab000(VA)
nr_pages: 0x20000
shared_inf: 0xbe9fb000(MA)
pt_base: 0xaae000(VA)
nr_pt_frames: 0x9
mfn_list: 0x9ab000(VA)
mod_start: 0x0(VA)
View L42y.js
var page = require('webpage').create();
var fs = require("fs");
page.onLoadStarted = function() {
console.log('Now loading a new page...');
};
page.onLoadFinished = function () {
var file = fs.open('L42y.html', 'w');
file.write(page.content);
file.close();
phantom.exit();
View gist:5196280
function FirstCtrl($scope) {
First.query({}, function(items) {
$scope.first = items;
});
Second.query({}, function(items) {
$scope.second = items;
});
}