Skip to content

Instantly share code, notes, and snippets.

View mainerror's full-sized avatar

Octavian A. Damiean mainerror

  • University of Graz
  • Austria, Graz
View GitHub Profile
@mainerror
mainerror / funcx.sublime-snippet
Created March 28, 2012 16:12
Sublime Text 2 JavaScript self-executing function expression snippet
<snippet>
<content><![CDATA[(function() {
${0:$TM_SELECTED_TEXT}
})();]]></content>
<tabTrigger>funcx</tabTrigger>
<scope>source.js</scope>
<description>Self-executing function expression</description>
</snippet>
@mainerror
mainerror / Id3NodeReader.js
Created April 24, 2012 17:25 — forked from darkyen/Id3NodeReader.js
A simple ID3v2.3.0 Tag Reader written for node.js
var fs = require('fs');
var Buffer = require('buffer').Buffer;
var id3Reader = new (function(){
// Credits to esailja //
var self = this;
function id3Size( buffer ) {
var integer = ( ( buffer[0] & 0x7F ) << 21 ) |
( ( buffer[1] & 0x7F ) << 14 ) |
( ( buffer[2] & 0x7F ) << 7 ) |
body {
background-color: #CCC;
}
@mainerror
mainerror / rules.md
Created June 26, 2012 09:45
Android Stack Overflow chat room rules
  • You will not gain write access to the room if you have a low reputation score and/or have not asked & answered reasonable questions on Stack Overflow - do not repeatedly request write access, we know you're waiting for access and multiple requests will get you blocked.

  • Please do not ask a question unless you have first thoroughly researched it yourself.

  • Please speak English as correctly as you're able.

  • Do not paste code into chat, instead use a site such as Pastebin.

  • When you Ping people (preface their username with an "@") be aware you're sending a sound to their terminal. This can quickly become annoying.

@mainerror
mainerror / rules.md
Created July 4, 2012 08:45 — forked from pyrodante/rules.md
Android Stack Overflow chat room rules
  • You will not gain write access to the room if you have a low reputation score, have a default user name (such as User12345), and/or have not asked & answered reasonable questions on Stack Overflow - do not repeatedly request write access, we know you're waiting for access and multiple requests will get you blocked.

  • Please do not ask a question unless you have first thoroughly researched it yourself.

  • developer.android.com has everything you should ever need to do all but the most advanced functionality. 99% of the time your solution will be there.

  • Please speak English as correctly as you're able.

  • Do not paste code into chat, instead use a site such as Pastebin.

@mainerror
mainerror / clean-request-list.js
Created September 12, 2012 12:49
Android Access Request List Clean
$(document).ready(function() {
var idList = [],
ivlID,
fkey;
$('#access-section-request .access-list').children().each(function() {
idList.push(parseInt($(this).attr('id').split('-')[2], 10));
});
fkey = $('#fkey').val();
@mainerror
mainerror / se_chat_plus.css
Created September 21, 2012 08:52
SE Chat Plus CSS
.access-section h2 button {
position: relative;
right: 0px;
}
body.outside h2 {
margin: 0px;
}
.low {
@mainerror
mainerror / config_mp.cfg
Created October 3, 2012 19:54
main_'s Call of Duty 4 Multiplayer Configuration
// generated by Call of Duty, do not modify
unbindall
bind TAB "+scores; g_scorescolor_allies 0.6 1.0 0.0 0.8; g_scorescolor_axis 1.0 0.1 0.8 0.5; g_scorescolor_free 0.0 0.0 0.0 0.2; g_teamcolor_allies 0.6 1.0 0.0 1.0; g_teamcolor_axis 1.0 0.1 0.8 1.0"
bind SPACE "+gostand"
bind 0 "openscriptmenu echo Placeholder"
bind 1 "weapnext"
bind 2 "openscriptmenu quickpromod 2"
bind 3 "openscriptmenu quickresponses 3"
bind 4 "say ^7Visit ^6net^7sky.org.uk"
bind 5 "openscriptmenu echo Placeholder"
@mainerror
mainerror / manifest.json
Created October 8, 2012 15:02
Futon Chrome App Manifest
{
"name": "Futon",
"version": "1.0",
"manifest_version": 2,
"description": "A simple Apache CouchDB Futon shortcut app.",
"icons": {
"128": "icon_128.png"
},
"app": {
"launch": {
12:23 <ProGEEK> no <512MB ram ogra_ ?
12:23 <ogra_> ProGEEK, i doubt it
12:23 <ogra_> that will be enough to run the system, but not a single app
12:23 <ogra_> (512M that is)
12:24 <ogra_> below i woudl doubt the system even works usable