Skip to content

Instantly share code, notes, and snippets.

View tiborsaas's full-sized avatar
🛰️
29C4D3B40280AE810FB4A81681E4417B

Tibor Szász tiborsaas

🛰️
29C4D3B40280AE810FB4A81681E4417B
View GitHub Profile
@tiborsaas
tiborsaas / like_gate.php
Created December 7, 2011 12:59
Facebook like gate
<?php
/********************************************************
* Usage:
* - include this file in any document
* - use the following PHP tags to show / hide content:
*
* <?php if( LIKED ): ?>
* Welcome my friend
* <?php else: ?>
@tiborsaas
tiborsaas / dabblet.css
Created February 12, 2012 18:58
Just fucking around with CSS3
/**
* Just fucking around with CSS3
*/
html {
background: linear-gradient( 73deg, #fff, #999 );
min-height: 100%;
}
@keyframes bg{
0% { background: #eee; text-indent: 10% }
@tiborsaas
tiborsaas / dabblet.css
Created March 7, 2012 10:58
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
html{
background: #f06;
background: linear-gradient(90deg, #ccc, #fff);
min-height:100%;
}
.tooltip{
@tiborsaas
tiborsaas / gist:2366406
Created April 12, 2012 10:40
jSmart wrapper for jQuery
/*********************************************************************
* A wrapper for jSmart template engine to make it work with jQuery
* Project URL: http://code.google.com/p/jsmart/
********************************************************************/
var Smarty = function( template_id, data )
{
var target = $( '#' + template_id );
@tiborsaas
tiborsaas / wave64.html
Created April 13, 2012 14:38 — forked from leemartin/wave64.html
$.wave64 Example with invert waveform
<html>
<head>
<title>SoundCloud $.wave64 Example</title>
<style>
body{
background: #333;
}
canvas{
display: block;
@tiborsaas
tiborsaas / backboneglobalpubsub.md
Created May 29, 2012 18:27 — forked from addyosmani/backboneglobalpubsub.md
Backbone.js global pub/sub

Generally one implements notifications by listening for events on specific models but if one wishes to have a single global message interchange, it could be done as follows:

var pubsub = new Backbone.Model;

View1 = Backbone.View.extend({
  initialize: function(){
    pubsub.bind('custom event', callback);
  }
 // ...
@tiborsaas
tiborsaas / dabblet.css
Created July 18, 2012 16:50
Pulsating image with Chrome CSS3 filters
/**
* Pulsating image with Chrome CSS3 filters
*/
html {
background: linear-gradient( 70deg, #fff, #666 );
min-height: 100%;
}
@keyframes color-pulsate{
0% { -webkit-filter: hue-rotate(0deg) saturate(20%) }
@tiborsaas
tiborsaas / dabblet.css
Created December 18, 2012 17:02
Untitled
.stripe{
background: #900;
display: inline-block;
padding: 5px 10px;
color: #fff;
margin-left: 50px;
position: relative;
}
@tiborsaas
tiborsaas / dabblet.css
Created February 1, 2013 12:23
Untitled
body{
background: #fff;
}
#rule{
width: 587px;
height: 34px;
background: #fff;
position: absolute;
@tiborsaas
tiborsaas / dabblet.css
Created February 1, 2013 12:48
CSS Based touch slider
/**
* CSS Based touch slider
*/
#slider{
width: 300px;
height: 40px;
border: 1px solid #999;
margin: auto;
margin-top: 100px;