Skip to content

Instantly share code, notes, and snippets.

View e00dan's full-sized avatar

e00dan

View GitHub Profile
### BEGIN /etc/burg.d/10_linux ###
menuentry 'elementary OS GNU/Linux, with Linux 3.2.0-60-generic' --class elementary --class gnu-linux --class gnu --class os --group group_main {
insmod ext2
set root='(hd0,7)'
search --no-floppy --fs-uuid --set 8c4bdce6-688f-4c0c-8c10-5cd49691d06a
echo 'Loading Linux 3.2.0-60-generic ...'
linux /boot/vmlinuz-3.2.0-60-generic root=UUID=8c4bdce6-688f-4c0c-8c10-5cd49691d06a ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-60-generic
}
ALTER TABLE `accounts` ADD `referrer` int(11) DEFAULT NULL;
CREATE TABLE IF NOT EXISTS `referrals` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`premium_points` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
@{
var i = 0;
foreach (var notify in @Model)
{
if (i > 0)
{
<text>setTimeout(function() {</text>
}
<text>
(function() {
$("#menu div.category").click(function() {
var temp = $(this).next();
if (typeof(temp.attr('id')) == 'string' && !temp.is(':visible')) {
$("#menu").find('div:has(div:has(div)):visible').each(function() {
if (temp.attr('id') != $(this).attr('id')) {
$(this).hide('blind', 500);
}
});
temp.show('blind', 500);
Building Solution: OmniSharp (Debug)
Building: Microsoft.Build.Evaluation (Debug)
Build started 2014-09-08 00:42:07.
__________________________________________________
Project "/home/kuzi/.config/sublime-text-3/Packages/OmniSharpSublime/OmniSharpServer/Microsoft.Build.Evaluation/Microsoft.Build.Evaluation.csproj" (Build target(s)):
Target PrepareForBuild:
@e00dan
e00dan / emberdeprecatedcontrollers.md
Last active August 29, 2015 14:13
ObjectController and ArrayController deprecated info
The stated recommendation is to use Controller (but not ObjectController or ArrayController, which are already deprecated on canary).

emberjs/rfcs#15 (comment)

Initially, we will continue to support routing to a controller+template, so nothing will break. Going forward, routes will route to a component instead.

In order to do that refactoring, several things will change:
import Ember from 'ember';
export default Ember.Route.extend({
actions: {
saveClient: function() {
var model = this.modelFor('clients/show');
model.save().then(()=> {
this.transitionTo('clients');
});
@e00dan
e00dan / application.controller.js
Created September 3, 2015 15:29
showBackButton demo
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@e00dan
e00dan / application.controller.js
Created September 8, 2015 11:29
Custom errors
import Ember from 'ember';
import CustomError from '../errors/custom-error';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
testCustomError: Ember.on('init', () => {
let customErrorInstance = new CustomError();
console.log(customErrorInstance);
})
});