Skip to content

Instantly share code, notes, and snippets.

View michalbe's full-sized avatar

Michał Budzyński michalbe

View GitHub Profile
// var input = '))';
var input = '(())))((';
var opening = '(';
var closing = ')';
var closingToEnd = function(array, pointer) {
var newArr = array.slice(pointer);
return newArr.filter(function(el) {
return el === closing;
}).length;

pszeniczniak

  • słody:
    • 2kg pszenicznego
    • 1kg pszenicznego karmelowego
    • 1kg monachijskiego
  • chmiele:
    • marynka 15g
  • wysładzanie:
    • 42*C - 30'
  • 64*C - 30'
[appmaker] sudo npm install 14:42:29 ☁ master ☀
Password:
npm WARN package.json moniker@0.1.2 No repository field.
npm http GET https://registry.npmjs.org/jsdom
npm http 304 https://registry.npmjs.org/jsdom
npm http GET https://registry.npmjs.org/htmlparser2
npm http GET https://registry.npmjs.org/nwmatcher
npm http GET https://registry.npmjs.org/xmlhttprequest
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/cssom
@michalbe
michalbe / index.js
Created October 11, 2015 21:49
random shows wallpaper
var series = document.querySelectorAll('#series .cover');
var x = 6;
var y = 3;
var sizeX = 1200;
var sizeY = 800;
var topPos = 0;
var leftPos = 0;
var totalCovers = x*y;
@michalbe
michalbe / gist:1446647
Created December 8, 2011 10:22 — forked from caillou/gist:1446583
Translation for relativeDate of moment.js
{
de : {
today: "heute um %time",
tomorrow: 'morgen um %time',
next: '%weekday um %time',
yesterday: 'gestern um %time',
last: 'letzten %weekday um %time'
},
en: {
today: 'Today at %time',
@michalbe
michalbe / gameengines.md
Created May 5, 2011 10:49 — forked from bebraw/gameengines.md
List of JS game engines

HTML5 / Javascript Game Engines

Name Latest Release Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 1.3 GPL2/MIT Classic Repro github Intended for making classic arcade-style games in JS+HTML5
Aves Commercial Obsolete. Company bought by Zynga. E3 2010 Aves Engine Prototype "Suburban World"
bdge github Badly Design Game Engine, an HTML5 Javascript game engine Demo.
Canvex FPS An experimental browser-based FPS game engine in the HTML tag. Created in 2006
[C
@michalbe
michalbe / gameengines.md
Created May 5, 2011 11:33 — forked from bebraw/gameengines.md
List of JS game engines

HTML5 / Javascript Game Engines

Name Latest Release Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 1.3 GPL2/MIT Classic Repro github Intended for making classic arcade-style games in JS+HTML5
Aves Commercial Obsolete. Company bought by Zynga. E3 2010 Aves Engine Prototype "Suburban World"
bdge github Badly Design Game Engine, an HTML5 Javascript game engine Demo.
Canvex FPS An experimental browser-based FPS game engine in the HTML tag. Created in 2006
[C
@michalbe
michalbe / twt.js
Created July 21, 2015 08:48
twt follow
Array.prototype.slice.call(
document.querySelectorAll('.ProfileCard.js-actionable-user')
).forEach(function(card){
var img = card.querySelector('img');
if (img.src.indexOf('default') === -1) {
card.querySelector('.js-follow-btn').click();
}
});
@michalbe
michalbe / script.js
Last active August 29, 2015 14:24
get all x11 colors
// run this script here: http://cng.seas.rochester.edu/CNG/docs/x11color.html
var result = [];
Array.prototype.slice.call(
document.querySelectorAll('tr td:nth-child(2n):not([bgcolor=black]):not([valign=top])')
).forEach(function(color){
result.push(color.innerHTML);
});