Skip to content

Instantly share code, notes, and snippets.

View Olical's full-sized avatar
🧙‍♂️
(magic)

Oliver Caldwell Olical

🧙‍♂️
(magic)
View GitHub Profile
@Olical
Olical / fib.rkt
Last active September 27, 2016 11:18
A fast, recursive, typed fibonacci program written in Racket.
#lang typed/racket
(: fib (-> Number Number))
(define (fib n)
(fib-iter 0 1 n))
(: fib-iter (-> Number Number Number Number))
(define (fib-iter a b n)
(if (= n 0) a
(fib-iter b (+ a b) (- n 1))))
@Olical
Olical / autoexec.cfg
Created September 7, 2016 12:25
My CS:GO settings
// optimised map
cl_radar_always_centered "0"
cl_radar_scale "0.3"
cl_hud_radar_scale "1.15"
cl_radar_icon_scale_min "1"
cl_radar_rotate "1"
cl_radar_square_with_scoreboard "1"
// 128 tick optimisation commands
@Olical
Olical / keybase.md
Created July 18, 2016 10:13
Keybase verification

Keybase proof

I hereby claim:

  • I am Olical on github.
  • I am olical (https://keybase.io/olical) on keybase.
  • I have a public key whose fingerprint is 49C8 0268 B0BB 6A31 68D0 0A6A 4C91 B3E1 0582 F410

To claim this, I am signing this object:

@Olical
Olical / flow-plus-babel.js
Last active April 25, 2016 13:13
Flow + Babel = <3 or at least a slight improvement
// @flow
type Person = {
name: string,
age: number
}
function getPeople (): Promise<Array<Person>> {
const people: Array<Person> = [
{name: 'Foo', age: 21},
@Olical
Olical / config.hs
Created March 10, 2016 20:24
Counter-Strike: Global Offensive config from Absent (backup of http://hastebin.com/udahojevop.hs)
// a few commands and binds that might help your gameplay
// radar size commands
cl_radar_scale 3.5 // allows visibility of entire minimap
cl_radar_always_centered 0 // allows visibility when stood to one side of map
cl_radar_rotate 0 // freezes map orientation
cl_radar_icon_scale_min 0.6 // changes size of icons relative to map
// 128 tick optimisation commands
@Olical
Olical / olical-gists.json
Created February 9, 2016 00:33
My public gists
[
{
"url": "https://api.github.com/gists/00d4a0b67e6ed50e3212",
"forks_url": "https://api.github.com/gists/00d4a0b67e6ed50e3212/forks",
"commits_url": "https://api.github.com/gists/00d4a0b67e6ed50e3212/commits",
"id": "00d4a0b67e6ed50e3212",
"git_pull_url": "https://gist.github.com/00d4a0b67e6ed50e3212.git",
"git_push_url": "https://gist.github.com/00d4a0b67e6ed50e3212.git",
"html_url": "https://gist.github.com/00d4a0b67e6ed50e3212",
"files": {
@Olical
Olical / twitter-search.json
Created February 9, 2016 00:21
An example twitter search result, from the documentation
{
"statuses": [
{
"coordinates": null,
"favorited": false,
"truncated": false,
"created_at": "Mon Sep 24 03:35:21 +0000 2012",
"id_str": "250075927172759552",
"entities": {
"urls": [
@Olical
Olical / anorher-steam-stack-trace.txt
Last active December 25, 2015 18:44
A Steam stack trace?
Stats for default/
Tracked requests: 55,086
Average Time: 2.32
Average PHP Time: 0.57
Average WG Time: 1.75
Average WG Bytes: 16,934.59
Average WG Calls: 2.25
(View All Controller Stats)
Performance Data
@Olical
Olical / 20-synaptics.conf
Last active November 1, 2018 07:01
Some configuration for Arch Linux on a Dell XPS 13 9350
Section "InputClass"
Identifier "touchpad"
Driver "synaptics"
MatchIsTouchpad "on"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "VertEdgeScroll" "on"
Option "VertTwoFingerScroll" "on"
Option "HorizEdgeScroll" "on"
@Olical
Olical / fish_prompt.fish
Created August 14, 2015 17:05
My fish shell lambda prompt functions (they go in ~/.config/fish/functions) it's extremely fast too! :D
# A lambda (λ) prompt.
# Green and red depending on exit status.
# Underlined if git status is dirty.
# Uppercase (Λ) if ahead of the remote.
function fish_prompt
if is_status_okay
set_color green
else
set_color red