This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Wypisanie elementów tablicy do pliku / stdout | |
## - stałe systemowe - | |
.equ kernel, 0x80 | |
.equ stdout, 1 | |
.equ exit, 0x01 | |
.equ write, 0x04 | |
.equ create, 0x08 #create file function | |
.equ close, 0x06 #close file function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Przykładowo: | |
## N=5, A B C | |
## A A B C C | |
## A B B B C | |
## B B B B B | |
## A B B B C | |
## A A B C C | |
## - stałe systemowe - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## - stałe systemowe - | |
.equ kernel, 0x80 | |
.equ stdout, 1 | |
.equ exit, 0x01 | |
.equ write, 0x04 | |
.data | |
text: | |
.ascii "lorem ipsum .dolor sit, amet!\n(lol)\nlol2\n" | |
text_len: | |
.long ( . - text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Niech ryczy z bólu ranny łoś, | |
Zwierz zdrów przebiega knieje. | |
Ktoś nie śpi, aby spać mógł ktoś, | |
To są zwyczajne dzieje. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import random | |
import sys | |
import subprocess | |
from optparse import OptionParser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PYTHONPATH=~/modules/ | |
export PATH=~/modules/bin:~/modules/:$PATH | |
export WORKON_HOME=$HOME/.virtualenvs | |
source ~/modules/virtualenvwrapper.sh | |
export PIP_REQUIRE_VIRTUALENV=true | |
export PIP_RESPECT_VIRTUALENV=true | |
export PIP_VIRTUALENV_BASE=$WORKON_HOME | |
# source .bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
hash make 2>&- || { echo >&2 "I require make but it's not installed. Aborting."; exit 1; } | |
hash autoreconf 2>&- || { echo >&2 "I require aureconf but it's not installed. Aborting."; exit 1; } | |
hash unzip 2>&- || { echo >&2 "I require unzip but it's not installed. Aborting."; exit 1; } | |
hash svn 2>&- || { echo >&2 "I require svn but it's not installed. Aborting."; exit 1; } | |
function errorcheck(){ | |
if [ "$?" -gt 0 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-size: 50pt; | |
} | |
.rot-headline { | |
font-size: 200pt; | |
position: absolute; | |
text-align: center; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Route } from 'react-router-dom'; | |
export default class RouteTest extends React.PureComponent { | |
render() { | |
return ( | |
<div> | |
<Route path="/hello" render={() => (<div>Hello world!</div>)} /> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Life.Game do | |
@type cell :: {integer, integer} | |
@type state :: [cell] | |
@adjacency_offsets [ | |
{-1, -1}, {-1, 0}, {-1, 1}, {0, -1}, | |
{0, 1}, {1, -1}, {1, 0}, {1, 1}, | |
] | |
@spec next(state) :: state |
OlderNewer