Skip to content

Instantly share code, notes, and snippets.

@Microfed
Microfed / tmux.conf
Created February 4, 2013 15:20 — forked from bryanl/tmux.conf
# ~/.tmux.conf
#
# See the following files:
#
# /opt/local/share/doc/tmux/t-williams.conf
# /opt/local/share/doc/tmux/screen-keys.conf
# /opt/local/share/doc/tmux/vim-keys.conf
#
# URLs to read:
#
@Microfed
Microfed / screencloud-pics-remove
Created September 8, 2013 14:53
Remove all updloaded screenshorts from screencloud account (pics listed on a page)
$('.icon-trash.icon-white').parent().map(function (i, a) { var f = document.createElement('iframe'); document.body.appendChild(f); f.src=a.href;});
@Microfed
Microfed / async problem
Last active December 23, 2015 03:29
Ember-data has many async problem
// I found a strange problem:
// if model describes like that:
App.otherModel = DS.Model.extend({
text: DS.attr('string')
});
App.model = DS.Model.extend({
field: DS.hasMany('otherModel', {async: true})
});
@Microfed
Microfed / gist:8545802
Created January 21, 2014 18:48
_Cardinal_, мельс
Нападение с соты (4.35.2) на соту (4.55.4) игрока _Cardinal_ (2014-01-21 03:34:54).
 Атакующая сторона:
Microfed (Раса: Псолао Альянс: - Религия: Штурмовик) Военный рейтинг: 23.2114 19.9132
(Att: 15Def: 0Dam: 15Hit: -15
 Обороняющаяся сторона:
_Cardinal_ (Раса: Псолао Альянс: [LT] Религия: -) Военный рейтинг: 33.445 74.5965
(Att: 5.8Def: 11.2Dam: 0Hit: 4
Раунд 1 / 30:00 / (01.21 03:34:54 - 01.21 04:04:54)
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
<WATCHDOG_START;DEFAULT_RGB:0,0,250;TIMESTAMP:23.12.2015_22:11:55.615;TAB: Run 2/Test Suite Summary>[1] Start TestSuite
[2] IPV4: 127.0.1.1
[3] IPV6: 127.0.1.1
[4] Firefox version: 40.0.3
[5] Running test suite .....
<DEFAULT_RGB:0,0,0;WATCHDOG_START;PATH:TestCase;TIMESTAMP:23.12.2015_22:11:55.620>[6]
<WATCHDOG_END;TIMESTAMP:23.12.2015_22:11:55.634>[7]End of Test Case.
[8]
<UNINDENT>[9]
<WATCHDOG_END;DEFAULT_RGB:0,0,250;TIMESTAMP:23.12.2015_22:11:55.634;TAB: Run 2>[10] End TestSuite
WATCHDOG_START DEFAULT_RGB:0,0,250 TIMESTAMP:23.12.2015_22:11:55.615 TAB: Run 2/Test Suite Summary[1] Start TestSuite
[2] IPV4: 127.0.1.1
[3] IPV6: 127.0.1.1
[4] Firefox version: 40.0.3
[5] Running test suite .....
DEFAULT_RGB:0,0,0 WATCHDOG_START PATH:TestCase TIMESTAMP:23.12.2015_22:11:55.620[6]
WATCHDOG_END TIMESTAMP:23.12.2015_22:11:55.634[7]End of Test Case.
[8]
UNINDENT[9]
WATCHDOG_END DEFAULT_RGB:0,0,250 TIMESTAMP:23.12.2015_22:11:55.634 TAB: Run 2[10] End TestSuite
function throwError() {
throw new Error('Text of the error');
}
function reportError() {
window.onerror.apply(window, arguments);
}
window.onerror = console.log.bind(console);
sessionStorage.setItem('test', 'string');
console.log(sessionStorage.getItem('test'));