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
# TMUX CONFIGURATION | |
# see https://github.com/tmux-plugins/tmux-sensible | |
set -g @almost-sensible 'on' | |
# configuration of the status line | |
set -g status-left-length 32 | |
set -g status-right-length 150 | |
set -g status-fg white | |
set -g status-bg black |
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
void setup() { | |
size(800, 600); | |
smooth(); | |
} | |
void draw() { | |
drawFish(50, 50); | |
} | |
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
// ==== Fish ==== | |
public class Fish { | |
private int x; | |
private int y; | |
private color fishColor; | |
public Fish(int x, int y, color fishColor) { | |
this.x = x; | |
this.y = y; |
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
int num = 50; | |
int[] x = new int[num]; | |
int[] y = new int[num]; | |
ArrayList<Fish> fishies = new ArrayList<Fish>(); | |
void setup() { | |
size(500, 500); | |
noStroke(); | |
fill(255, 102); |
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
# sort_sequences.py | |
# Callum Howard, 2017 | |
from itertools import permutations, combinations | |
def compswap(swap, inputs): | |
if (inputs[swap[0]] > inputs[swap[1]]): | |
inputs[swap[0]], inputs[swap[1]] = inputs[swap[1]], inputs[swap[0]] | |
return inputs |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include "list.h" | |
// NULL: a special value we can store | |
// in a pointer that indicates that | |
// it refers to nothing | |
// helper function prototypes | |
struct node *new_node(int data, struct node *next); |
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
# Clean, simple, compatible and meaningful. | |
# Tested on Linux, Unix and Windows under ANSI colors. | |
# It is recommended to use with a dark background and the font Inconsolata. | |
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
# | |
# http://ysmood.org/wp/2013/03/my-ys-terminal-theme/ | |
# Mar 2013 ys | |
# Machine name. | |
function box_name { |
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
extern crate ignore; | |
fn main() { | |
use ignore::{WalkBuilder, WalkState}; | |
WalkBuilder::new("./").build_parallel().run(|| { | |
Box::new(move |result| { | |
let dent = match result { | |
Err(_) => return WalkState::Continue, |
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
+ verbose=on | |
+ shift | |
+ [[ -n '' ]] | |
+ get_distro | |
+ get_bold | |
+ case "$ascii_bold" in | |
+ case "$bold" in | |
+ get_distro_colors | |
+ case "$ascii_distro" in | |
+ set_colors 2 1 |
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
+ verbose=on | |
+ shift | |
+ [[ -n '' ]] | |
+ get_distro | |
+ get_bold | |
+ case "$ascii_bold" in | |
+ ascii_bold='\033[1m' | |
+ case "$bold" in | |
+ bold='\033[1m' | |
+ get_distro_colors |
OlderNewer