Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ivaylopg
ivaylopg / obliquestrategies.sh
Created October 16, 2018 06:02
Oblique Strategies in your terminal as a BASH script
#!/usr/bin/env bash
# oblique
#
# Prints a random Oblique Strategy in your terminal
#
# Oblique Strategies © 1975-2001 Brian Eno/Peter Schmidt
# Text transcription taken from http://www.rtqe.net/ObliqueStrategies/ © 1997-2007 Gregory Taylor
#
# Used without permission. You should definitely go buy an actual deck:
@ivaylopg
ivaylopg / _verify-repair-permissions-disk.md
Created October 12, 2015 09:36 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

function prompt_char {
git branch >/dev/null 2>/dev/null && echo '±' && return
echo '$'
}
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
}
PROMPT='%{$fg[magenta]%}%n%{$reset_color%}:%{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info)
@ivaylopg
ivaylopg / jsVector2d.js
Last active June 12, 2021 02:50
A quick 2D vector implementation, based on the vector functions in P5.js. Useful for animating CSS transforms in JS using acceleration & velocity.
/*
A quick JavaScript 2D vector implementation.
Based on simplifications of the vector functions in P5.js
Useful for quick animations in JS using acceleration & velocity.
MIT License
Ivaylo Getov, 2015
www.ivaylogetov.com
@ivaylopg
ivaylopg / Macbook Pro glInfoExample Dump
Created July 30, 2014 04:20
Output from openFrameworks glInfoExample for Macbook Pro
-------------------------------------------------
opengl info
-------------------------------------------------
version=2.1 INTEL-8.28.30
vendor=Intel Inc.
renderer=Intel Iris OpenGL Engine
-------------------------------------------------
opengl limits
-------------------------------------------------
OpenGL limits:
@ivaylopg
ivaylopg / iMac glInfoExample Dump
Created July 30, 2014 04:15
Output from openFrameworks glInfoExample for iMac
-------------------------------------------------
opengl info
-------------------------------------------------
version=2.1 ATI-1.24.35
vendor=ATI Technologies Inc.
renderer=AMD Radeon HD 6770M OpenGL Engine
-------------------------------------------------
opengl limits
-------------------------------------------------
OpenGL limits: