Skip to content

Instantly share code, notes, and snippets.

@ivaylopg
ivaylopg / obliquestrategies.sh
Created Oct 16, 2018
Oblique Strategies in your terminal as a BASH script
View obliquestrategies.sh
#!/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 Oct 12, 2015 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)
View _verify-repair-permissions-disk.md

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

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

View ivaylopg.zsh-theme
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 Jun 12, 2021
A quick 2D vector implementation, based on the vector functions in P5.js. Useful for animating CSS transforms in JS using acceleration & velocity.
View jsVector2d.js
/*
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 Jul 30, 2014
Output from openFrameworks glInfoExample for Macbook Pro
View Macbook Pro glInfoExample Dump
-------------------------------------------------
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 Jul 30, 2014
Output from openFrameworks glInfoExample for iMac
View iMac glInfoExample Dump
-------------------------------------------------
opengl info
-------------------------------------------------
version=2.1 ATI-1.24.35
vendor=ATI Technologies Inc.
renderer=AMD Radeon HD 6770M OpenGL Engine
-------------------------------------------------
opengl limits
-------------------------------------------------
OpenGL limits: