Skip to content

Instantly share code, notes, and snippets.

View vieron's full-sized avatar

Javier Sánchez - Marín vieron

View GitHub Profile
@vieron
vieron / twenergy.js
Created October 7, 2010 12:01
Probando
var FLUSTHEFLASH = {
delay: 5000,
mclass: ".flashmsg",
opacity: "0.9",
show: function() {
$(this.mclass).hide();
$(this.mclass).css("opacity", this.opacity)
$(this.mclass).fadeIn("slow").fadeTo((this.delay), 1).fadeOut("slow");
return false;
}
@vieron
vieron / filename
Created October 7, 2010 12:06
Pepe
var FLUSTHEFLASH = {
delay: 5000,
mclass: ".flashmsg",
opacity: "0.9",
show: function() {
$(this.mclass).hide();
$(this.mclass).css("opacity", this.opacity)
$(this.mclass).fadeIn("slow").fadeTo((this.delay), 1).fadeOut("slow");
return false;
}
@vieron
vieron / Uploaded from TextMate
Created October 7, 2010 17:40
create a gist from ruby
response = Net::HTTP.post_form(URI.parse('http://gist.github.com/api/v1/xml/new'), {
"files[#{name}]" => contents,
"description" => description,
"login" => login,
"token" => token
})
response = Net::HTTP.post_form(URI.parse('http://gist.github.com/api/v1/xml/new'), {
"files[#{name}]" => contents,
"description" => description,
"login" => login,
"token" => token
})
additional_content = TextMate::UI.request_string :prompt => "Write additional content to the post"
@vieron
vieron / gist.css
Created October 7, 2010 19:11
CSS Styling Highlighted Text
::selection {
background:#cc0000;
color:#fff;
}
::-moz-selection {
background:#cc0000;
@vieron
vieron / gist.html
Created October 7, 2010 19:14
Put an email in a html file without being spamed
<p class="reversedemail">moc.liame@eman</p>
<style type="text/css" media="screen">
.reversedemail {
direction: rtl;
unicode-bidi: bidi-override;
}
</style>
@vieron
vieron / gist:1332326
Created November 1, 2011 23:59 — forked from timgentry/gist:1330408
Install additional Textmate bundles
#!/bin/bash
# Fullscreen (Lion)
bash <(curl -s -L http://gr3g.me/tm-full)
# Missing Drawer
bash <(curl -s -L http://goo.gl/4RUoP)
mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
@vieron
vieron / gist:1956766
Created March 2, 2012 08:29
:after and :before for IE6+ with a SASS mixin
@mixin pseudo-element($type : "before", $content : "", $css_property : "zoom") {
& {
*#{$css_property}: expression(
this.runtimeStyle.zoom="1",
(is_before_element = ("#{$type}" == 'before')),
(e = this[ is_before_element ? 'insertBefore' : 'appendChild']( document.createElement("small"), is_before_element ? this.firstChild : null )),
e.innerHTML="#{$content}",
e.className="#{$type} pseudo-element"
);
}
@vieron
vieron / README.md
Created March 16, 2012 20:42 — forked from necolas/README.md
Experimenting with component-based HTML/CSS naming and patterns

Template Components

Used to provide structural templates.

Pattern

t-template-name
t-template-name--modifier-name
t-template-name__subcomponent-name--subcomponent-modifier-name