Skip to content

Instantly share code, notes, and snippets.

@L42y
L42y / index.html
Created March 28, 2012 09:22
example
<html>
<head>
<title>gist</title>
</head>
<body>
<div class="clearfix">
<div class="l">
<img src="//placehold.it/200"/>
NameError in Managers::PerformancesController#create
uninitialized class variable @@collaborated_model_id_names in Performance
app/models/collaborative.rb:53:in `set_collaborated_model_ids'
app/controllers/managers/performances_controller.rb:35:in `create'
app/models/collaborative.rb:53:in `set_collaborated_model_ids'
:css
.short-intro {
margin-left: 90px;
}
.verified {
.name {
padding-right: 20px;
background: url(v.png) 50% 100% no-repeat;
}
}
@L42y
L42y / Blog.HelloWorld.VisualBasic.vb
Created October 11, 2012 15:39 — forked from kilip/Blog.HelloWorld.VisualBasic.vb
Visual Basic Hello World
Sub Main()
MessageBox("Hello World")
End Sub
/&
test
print "Hello, World!"
print "Hello World!"
function FirstCtrl($scope) {
First.query({}, function(items) {
$scope.first = items;
});
Second.query({}, function(items) {
$scope.second = items;
});
}
@L42y
L42y / L42y.js
Last active December 16, 2015 06:19
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();
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)