Skip to content

Instantly share code, notes, and snippets.

View cezarsa's full-sized avatar

Cezar Sá Espinola cezarsa

  • Brasília - DF / Brazil
  • 17:33 (UTC -03:00)
View GitHub Profile
@cezarsa
cezarsa / robot.js
Created November 25, 2012 20:41
LameRobot
//FightCode can only understand your robot
//if its class is called robotClass
var robotClass = function(){
};
robotClass.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
robot.rotateCannon(360);
@cezarsa
cezarsa / dabblet.css
Created September 26, 2012 18:57
Untitled
.area {
background: crimson;
width: 200px;
height: 200px;
position: relative;
}
.a {
position: absolute;
@cezarsa
cezarsa / dabblet.css
Created September 26, 2012 16:57
Untitled
div {
width: 100px;
height: 40px;
background: crimson;
margin: 100px;
/*border: 10px solid navy;*/
border-width: 10px;
border-style: solid;
border-image: linear-gradient(top, #dcdcdc 0%,#dadada 16%,#c9c9c9 76%,#b6b6b6 100%);
@cezarsa
cezarsa / dabblet.css
Created September 26, 2012 16:57
Untitled
div {
width: 100px;
height: 40px;
background: crimson;
margin: 100px;
/*border: 10px solid navy;*/
border-width: 10px;
border-style: solid;
-webkit-border-image: -webkit-linear-gradient(top, #dcdcdc 0%,#dadada 16%,#c9c9c9 76%,#b6b6b6 100%);
<canvas width="800" height="600"></canvas>
SELECT uid, first_name, last_name, username, pic_square FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND is_app_user = 1 ORDER BY mutual_friend_count DESC LIMIT 10
diff --git a/vows/filters_vows.py b/vows/filters_vows.py
index 6269b27..96c45b5 100644
--- a/vows/filters_vows.py
+++ b/vows/filters_vows.py
@@ -46,7 +46,7 @@ FILTER_PARAMS_DATA = [
{
'type': BaseFilter.String,
'values': [
- ('a', 'a'), ('bbbb', 'bbbb'), (' cccc ', 'cccc'), (' cc:cc ', 'cc:cc')
+ ('a', 'a'), ('bbbb', 'bbbb'), (' cccc ', 'cccc'), (' cc:cc ', 'cc:cc'), ('"a,b"', 'a,b')
@cezarsa
cezarsa / dabblet.css
Created January 29, 2012 02:15
Fancy arrow
/**
* Fancy arrow
*/
body {
background-color: #ebeced;
}
.arrow {
border: 96px solid transparent;
border-bottom: 0;
border-top: 37px solid #d7d7d8;
@cezarsa
cezarsa / VagrantFile
Created July 3, 2011 21:58 — forked from heynemann/VagrantFile
provy sample code
Vagrant::Config.run do |config|
config.vm.define :frontend do |inner_config|
inner_config.vm.box = "base"
inner_config.vm.forward_port("http", 80, 8080)
inner_config.vm.network("33.33.33.33")
end
config.vm.define :backend do |inner_config|
inner_config.vm.box = "base"
@cezarsa
cezarsa / locales.html
Created October 17, 2010 19:29
Report of existing locales and missing translations
<!DOCTYPE html>
<!--
Just drop this file into your extension directory.
-->
<html>
<head>
<title>Locales Data</title>
<script>
var LocaleTable = function() {