Skip to content

Instantly share code, notes, and snippets.

View ravicious's full-sized avatar

Rafał Cieślak ravicious

View GitHub Profile
FUNCTION <SNR>64_repo_head_ref()
Called 50 times
Total time: 0.009825
Self time: 0.008881
count total (s) self (s)
50 0.009620 0.008676 return readfile(self.dir('HEAD'))[0]
FUNCTION <SNR>64_repo_head()
Called 50 times
FUNCTION <SNR>64_repo_head_ref()
Called 50 times
Total time: 0.009825
Self time: 0.008881
count total (s) self (s)
50 0.009620 0.008676 return readfile(self.dir('HEAD'))[0]
FUNCTION <SNR>64_repo_head()
Called 50 times
class Player
@rescued_captive = false
def play_turn(warrior)
@current_health = warrior.health
if not @rescued_captive
if warrior.feel(:backward).captive?
warrior.rescue! :backward
systemd-+-GoogleTalkPlugi---6*[{GoogleTalkPlugi}]
|-agetty
|-at-spi-bus-laun-+-dbus-daemon
| `-3*[{at-spi-bus-laun}]
|-at-spi2-registr---{at-spi2-registr}
|-colord---{colord}
|-conky---9*[{conky}]
|-conky.sh---conky---9*[{conky}]
|-crond
|-cupsd
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x7dd917a9, pid=860, tid=2142800704
#
# JRE version: 7.0_21-b11
# Java VM: Java HotSpot(TM) Server VM (23.21-b01 mixed mode linux-x86 )
# Problematic frame:
# C [libGL.so.1+0x707a9] glXChooseVisual+0xaf69
#
float m;
void setup() {
size(500, 500);
frameRate(30);
}
void draw() {
background(176, 226, 206);
m = millis();
// TODO
// machanie ręką
// zmieniające się tło
int m, initialTime;
void setup() {
size(500, 500);
frameRate(25);
smooth();
  1. Create a project named Say the time and navigate to it.
  2. Create a task Say the time:
  3. Action: Variable Split 3. Name: %TIME 3. Splitter: . (a dot)
  4. Action: Say 3. Text: %TIME1 %TIME2 3. Stream: Media
  5. Create a task [Say the time] Screen on:
  6. Action: Variable Set
@ravicious
ravicious / game_of_life.pde
Last active December 15, 2015 12:59
Conway's Game of Life in Processing
// ########################
// Najistotniejsze zmienne:
// procentowa szansa, że komórka przy wypełnianiu
// planszy w setup() będzie martwa
int randThreshold = 90;
// rozmiar planszy (boardSize x boardSize)
int boardSize = 60;
import controlP5.*;
import processing.video.*;
// UI
ControlP5 cp5;
PImage sourcePicture, newPicture;
Capture cam;
float blockScale; // im większa skala, tym mniejsze bloki
int loopCount; // ilość powtórzeń pętli; im większa wartość, tym więcej bloków