Skip to content

Instantly share code, notes, and snippets.

View knowbody's full-sized avatar
🏠
Yolo.

Mateusz Zatorski knowbody

🏠
Yolo.
View GitHub Profile
@knowbody
knowbody / BestFit.cs
Created March 9, 2014 22:35
Memory placement in OS: BestFit
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BestFit
{
class Algo
{
@knowbody
knowbody / WorstFit.cs
Created March 9, 2014 22:36
Memory placement in OS: WorstFit
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WorstFit
{
class Algo
{
@knowbody
knowbody / FirstFit.cs
Created March 9, 2014 22:37
Memory placement in OS: FirstFit
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FirstFit
{
class Algo
{
@knowbody
knowbody / NextFit.cs
Created March 9, 2014 22:37
Memory placement in OS: NextFit
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NextFit
{
class Algo
{
@knowbody
knowbody / ruby_setup_mac
Last active August 29, 2015 14:11
ruby macosx setup
http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
@knowbody
knowbody / router.js
Created November 12, 2015 12:32
stuff
import React, { PropTypes, Component, ContextTypes } from 'react'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { Router, Route, Link, IndexRoute, Redirect } from 'react-router'
const Navigation = (props, context) => {
let inboxSubmenu = null
if (location.pathname.indexOf('/inbox') !== -1) {
inboxSubmenu = (
<ul>
<li><Link to='/inbox/sent'>Sent</Link></li>
@knowbody
knowbody / .nvimrc
Last active December 11, 2015 17:12
My Neovim config
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.nvim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@knowbody
knowbody / ReverseString.java
Created March 11, 2013 20:55
Reverse String algorithm
import javax.swing.JOptionPane;
public class ReverseString {
public static String reverse(String s) {
int length = s.length(), last = length - 1;
char[] chars = s.toCharArray();
for (int i = 0; i < length / 2; i++) {
char c = chars[i];
chars[i] = chars[last - i];
@knowbody
knowbody / fix-github.md
Created December 19, 2015 22:35
What would fix Github?

What would fix GH issues:

  • up/down vote on issues and ranking sort
  • prioritize issues
  • reported / open / closed
  • Saved search filters & select all
  • Prompt prior to issue submission confirming having complied with issue reporting guidelines
  • Built in comment based issue closing and PR shipping
  • Built in pinging of potentially responsible parties