This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// LIMONADE SESSION FEATURES EXAMPLES | |
require_once 'lib/limonade.php'; | |
function configure() | |
{ | |
// by default, session is enable. It automaticaly start a session with LIM_SESSION_NAME as name | |
option('session', false); // disable | |
option('session', true); // enable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// expects a number from 0 to 100 | |
=opacity(!opacity) | |
:opacity= !opacity / 100 | |
:-moz-opacity= !opacity / 100 | |
:-ms-filter= "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{!opacity})" | |
:filter= "alpha(opacity=#{!opacity})" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Cross browser transparency */ | |
.transparent_class { | |
filter:alpha(opacity=50); | |
-moz-opacity:0.5; | |
-khtml-opacity: 0.5; | |
opacity: 0.5; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Texmate command: open markdown links | |
# <http://macromates.com/> | |
# [My favorite editor](http://macromates.com/) | |
idx = ENV['TM_LINE_INDEX'].to_i | |
line = ENV['TM_CURRENT_LINE'] | |
alt_tokens = line.include?('<') && line.include?('>') | |
b_token = alt_tokens ? '<' : '(' | |
e_token = alt_tokens ? '>' : ')' |
NewerOlder