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
# ----------------------------------- | |
# create front-end structure | |
# By Adriano Fernandes | |
# twitter.com/djadriano | |
# [email protected] | |
# ----------------------------------- | |
# ----------------------------------- | |
#get parameters | |
# ----------------------------------- |
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
var myMixin = { | |
foo : 'bar', | |
method_x : function() { | |
return true; | |
} | |
}; |
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
copy = { | |
bundle_offers : [ | |
{ | |
title : 'teste1' | |
}, | |
{ | |
title : 'teste2' | |
} | |
] | |
} |
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
// reset all buttons | |
input[type="submit"], | |
button { | |
border: 0; | |
padding: 0; | |
cursor: pointer; | |
outline: none; /* for good measure */ | |
overflow: visible; /* removes extra side padding in IE */ | |
} |
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
// ====================================================================== | |
// Animation.scss | |
// - contains helpers for keyframes animation in css3 | |
// - Only functionally with Sass 3.2.0 Alpha and Compass 0.13.alpha | |
// ====================================================================== | |
@mixin animation-name($name) { | |
-webkit-animation-name: $name; | |
-moz-animation-name: $name; | |
-ms-animation-name: $name; |
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
localize the first and final line | |
start the line: ^ | |
end of the line: $ | |
replace www. to a tag: | |
\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?«»“”‘’])) | |
<a href="http://\1" target="_blank">\1</a> |
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
if ($.browser.msie && window.XDomainRequest) { | |
var xdr = new XDomainRequest(); | |
xdr.open("POST",'http://yoururl.com'); | |
xdr.send( ajax_data ); | |
xdr.onerror = function(){ | |
console.log('error'); | |
}; |
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
base64 -b0 caminho do arquivo (control-c no arquivo e colar aqui) | pbcopy |
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
// find .svn files | |
find . -type d -name .svn | |
// remove .svn files | |
rm -rf `find . -type d -name .svn` |
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
EurodanceApp.directive('modal', function($compile){ | |
var template = '<h2>{{title}}</h2><p>{{content}}</p>'; | |
return { | |
restrict : 'A', | |
scope : true, | |
link : function( scope, element, attrs ) { | |
scope.title = attrs.title; |
OlderNewer