Skip to content

Instantly share code, notes, and snippets.

View superfine's full-sized avatar
🥳
"my github account is full of empty repositories with good intentions" (@kvlly)

Patrick Laubner superfine

🥳
"my github account is full of empty repositories with good intentions" (@kvlly)
View GitHub Profile
@superfine
superfine / dabblet.css
Created February 16, 2012 22:11
graph/math paper
/* graph/math paper */
background-color: #FFFAFA;
background-image: linear-gradient(#ADD8E6 2px, transparent 2px),
linear-gradient(0, #ADD8E6 2px, transparent 2px),
linear-gradient(rgba(100, 149, 237,.3) 1px, transparent 1px),
linear-gradient(0, rgba(100, 149, 237,.3) 1px, transparent 1px);
background-size:100px 100px, 100px 100px, 20px 20px, 20px 20px;
background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px
@superfine
superfine / dabblet.css
Created February 16, 2012 22:14
Vertical stripes
/* Vertical stripes */
background: #8B0000;
background-image: linear-gradient(0, transparent 50%, rgba(0,0,0,.5) 50%);
background-size: 150px;
/*
DarkRed #8B0000;
Maroon #800000;
*/
@superfine
superfine / gist:3989217
Created October 31, 2012 19:18 — forked from jefflembeck/gist:2040712
jquery slider loop thing
//Originally from http://trendmedia.com/news/infinite-rotating-images-using-jquery-javascript/
var InfiniteRotator =
{
itemInterval: 3000,
infiniteLoop: function() {
setInterval(function(){
$('.sliderItem').eq(currentItem).stop().transition({opacity: 0},2000);
//if at last item, reset currentItem to 0
@superfine
superfine / index.html
Created November 16, 2012 13:14
A CodePen by Taylor Packet. CSSssSsSss Creeper - Minecraft Creeper, something I thought would be neat to create.
<body><div class="container">
<div class="mouth">
<ul>
<li>Right</li>
<li>Left</li>
<li></li><li></li><li></li><li></li><li></li>
</ul>
</div></div>
/*
NOTE!!!!
The most updated version of this code is here:
https://github.com/scottjehl/iOS-Orientationchange-Fix
A fix for the dreaded iOS orientationchange zoom bug http://adactio.com/journal/5088/. Seems to work!
Authored by @scottjehl. Props to @wilto for addressing a tilt caveat.

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@superfine
superfine / .gitignore
Last active October 7, 2015 19:31
gitignore
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
*.iml
## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:
# User-specific stuff:
@superfine
superfine / disabled click
Last active October 11, 2015 18:16
disables interaction via css class on clickable elements
// disables interaction via css class on clickable elements
$(document).ready(function() {
$('.disabled').click(function(){
return false;
});
});
/* possible css */
.disabled {
cursor: not-allowed;
@superfine
superfine / search value remover
Created October 11, 2015 18:15
removes the value from the search input with non-jQuery JavaScript
// removes the value from the search input with non-jQuery JavaScript
function freez(obj) {
var id = obj.id;
if (obj.value == '') {
obj.value = defaultSearchValue[id];
} else if (!defaultSearchValue[id]) {
defaultSearchValue[id] = obj.value;
obj.value = '';
} else if (obj.value == defaultSearchValue[id]) {
obj.value = '';
@superfine
superfine / ::selection
Created October 11, 2015 18:17
removes default highlighting from ::selection
/* removes default highlighting */
::selection {
background: transparent;
}