Skip to content

Instantly share code, notes, and snippets.

View pixelass's full-sized avatar
😶‍🌫️
who?

Gregor Adams pixelass

😶‍🌫️
who?
  • Hamburg, Germany
  • 20:50 (UTC +02:00)
View GitHub Profile
@pixelass
pixelass / bitcolor.js
Created April 14, 2016 11:26 — forked from lrvick/bitcolor.js
Javascript functions for doing fast binary/hex/RGB color conversions using bitwise operations.
// convert 0..255 R,G,B values to binary string
RGBToBin = function(r,g,b){
var bin = r << 16 | g << 8 | b;
return (function(h){
return new Array(25-h.length).join("0")+h
})(bin.toString(2))
}
// convert 0..255 R,G,B values to a hexidecimal color string
RGBToHex = function(r,g,b){
@pixelass
pixelass / Mandelbrot algorithm in SCSS (version 2).markdown
Created March 27, 2016 10:18
Mandelbrot algorithm in SCSS (version 2)

RubiCSS cube

Chrome only !!! a Rubik's Cube made in HTML, JavaScript and CSS.

Drag to play

Now works in Firefox!!!!

A Pen by Gregor Adams on CodePen.

@pixelass
pixelass / index.jade
Created March 27, 2016 09:16
netfix logo animation CSS
input.retrigger(type="radio" name="rerun" id="retrigger--1")
input.retrigger(type="radio" name="rerun" id="retrigger--2" checked)
.buttons
label.button(for="retrigger--1" class="button--1") PLAY AGAIN
label.button(for="retrigger--2" class="button--2") PLAY AGAIN
.logo
span N
span E
span T
@pixelass
pixelass / Marvel Logo animation | pure CSS.markdown
Created March 27, 2016 09:15
Marvel Logo animation | pure CSS

Marvel Logo animation | pure CSS

watching the new daredevil series on netflix led me to doing this ;)

webkit only (requires -webkit-background-clip)

A Pen by Gregor Adams on CodePen.

License.

Welcome to the Bug | Welcome to the machine - Pink Floyd
A Bug with no name | A horse with no name - America
No Bug no cry | No woman no cry - Bob Marley
Bug im Freibad | Tod im Freibad - WIZO
99 Bugs | 99 Luftballons - Nena
Brown eyed Bug | Brown eyed girl - Van Morrison
Bug on | Dream on - Aerosmith
In the Bug tonight | in the air tonight - Phil Collins
Wonderbug | Wonderwall - Oasis
Bug Patrol | Snow Patrol - Chasing Cars
@pixelass
pixelass / TR-808 | Happy 888 followers.markdown
Last active June 27, 2017 14:14
TR-808 | Happy 888 followers

TR-808 | Happy 888 followers

Inspired by:
TR-808
Thank you for my 888 follower count.
I promised to make a dedicated pen for every 100 followers. I started this idea a long time ago and never finished it. I continued a few weeks ago and had a first prototype. Due to the crappy JS timing issues I had to do a few hacks but was able to get some fun demo going.

I then decided to write this from scratch with React.js since my first implementation had some limitations. A few tweets [...] and somebody suggested Tone.js to me. I took a look at it and was overwhelmed by the API this Library offers. I played around with it a little and here's the thing. LOOK AT AND USE THIS LIBRARY IT IS F*****G AMAZING.

I think this is the easiest to understand library I have used so far and while I only touched about

@pixelass
pixelass / tmux-cheatsheet.markdown
Created October 16, 2015 08:51 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@pixelass
pixelass / gist:dace9b37c83dc232e233
Created October 16, 2015 07:48 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat