Skip to content

Instantly share code, notes, and snippets.

View manpages's full-sized avatar

Jonn Mostovoy manpages

View GitHub Profile
@manpages
manpages / dictwtf.py
Created January 7, 2015 21:04
dict wtf
from pprint import pprint
def parseField(input):
return dict( { 'cells': parseCells(input),
'cages': parseCages(input) })
def parseCells(input):
solutionMaybe = solution(input)
if solutionMaybe:
return solutionMaybe
@manpages
manpages / bootable-win-from-linux.txt
Created December 12, 2014 14:57
How to make bootable Windows USB from Linux
Install ms-sys
You will need ms-sys to write a Master Boot Record (MBR) to the USB drive.
Make sure you have installed the gcc, make, and gettext repository packages in order to compile the source code.
Download the latest source code from http://ms-sys.sourceforge.net/#Download.
Un-tar the source code and change into the source code directory:
tar xvzf ms-sys-2.3.0.tar.gz
! 256 COLOURS
*termName: xterm-256color
! WHY DO WE EVEN NEED THIS?
URxvt.geometry: 155x56
! DISABLE ISO14755
URxvt.iso14755: false
! UBUNTU MONO
@manpages
manpages / medium.md
Created October 7, 2014 00:28
Medium?

Possibility to print inline monospace text is very important because

  • We
  • Can
  • Embed
  • It into lists :)
@manpages
manpages / example.ex
Created September 15, 2014 05:35
Better layot for OTP structure
defmodule ArchJS do
use Application
import ArchJS.Macros.Sup
defsup User, [] do
defsofo Sessions, ArchJS.User.Session
children = [
worker(ArchJS.User.Registry, []),
worker(ArchJS.User.Sessions, [])
]
@manpages
manpages / giant-face.ascii
Last active August 29, 2015 14:05
Gentle Giant's Face
...........
..... .....
..... .....
..... .....
..OOOO
@manpages
manpages / gentle-giant.ascii
Last active August 29, 2015 14:05
Gentle Giant Logo
$$$$$o oo ooo
o$$$ o$$$$$o o$o o$$o
o$$ o$$$ o$$o o$$o
o$$$$ ooo$$$ o$$$o oo$$o oo$$$$$$o o$$o ooo$$$
$$$$$ oo$$$$ $$$ $oo o$$$oo o$$ o$$o o$$o $$$ $oo
o$$$$$ oo$$ o$$$ o$$$ oo$ o$$$o $$$
@manpages
manpages / jm.ascii
Last active August 29, 2015 14:05
initials ascii art
,$eeeee/
j `$$
`$
|$
=e$= \o \oo
|$ |$\ /$$
|$ |$$\ /$|$
|$ |$ v |$
@manpages
manpages / darkproger-s_example.txt
Created April 16, 2014 18:19
darkproger's example
[guest@nixvm:~/haskell]$ cat default.nix
{ haskellPackages ? (import <nixpkgs> {}).haskellPackages }:
let
inherit (haskellPackages) cabal cabalInstall mtl transformers;
in cabal.mkDerivation (self: {
pname = "test";
version = "0.1.0.0";
isExecutable = true;
src = ./.;
@manpages
manpages / nope.ex
Last active December 28, 2015 18:09
Nope.
➜ ~ cat nope.ex # we can, however, redefine +,- et al. Though it's not that useful:
defmodule Nope do
def left + right do
left <> " ZOMG " <> right
end
end
➜ ~ elixirc nope.ex
➜ ~ iex
➜ ~ ERL_LIBS=. iex
Erlang R16B02 (erts-5.10.3) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]