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
!!!Strict | |
%html{ } | |
%head | |
%title RubyConfBr2011SimpleApplication | |
%meta{'http-equiv'=>"Content-Type", :content=>"text/html; charset=utf-8"}/ | |
%meta{'http-equiv'=>"Content-Language", :content=>"en-us"}/ | |
= stylesheet_link_tag :scaffolds | |
%body |
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
-app | |
-assets | |
-javascripts | |
-app | |
-controllers | |
-models | |
-views | |
-lib | |
-vendor |
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
#STYL CSS | |
turn_into_slider( items, width , height) | |
position: relative | |
display: inline-block | |
width: width | |
height: height | |
overflow: hidden | |
.slider | |
position: absolute |
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
**** This is the meta data for this file/post ***** | |
--- | |
title: "Roberto Rodriguez's Blog" | |
layout: 'blog' | |
description: 'A static blog on NodeJS' | |
post_title: "How I build this" | |
--- | |
*** and this is the way I list it on the side bar *** | |
<h4>Posts</h4> |
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
docpad generate | |
cp -R out/ ./ |
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
#headers = Hash['Content-Type' => 'application/json; charset=utf-8' , 'X-Parse-Application-Id' => "XXXXXXXXXXXXXXXX" , | |
#'X-Parse-REST-API-Key' => "XXXXXXXXXXXXX"] | |
#parse_result = https("api.parse.com").get('/1/classes/Cierre?where={"fecha":{"$ne":"' + fecha + '"}}&order=-createdAt&limit=1',headers).body | |
#parse_result = JSON.parse parse_result | |
post "/cierre" do | |
headers = Hash['Content-Type' => 'application/json; charset=utf-8' , 'X-Parse-Application-Id' => "XXXXXXXXXXXXX" , | |
'X-Parse-REST-API-Key' => "XXXXXXXXXXXXXXXX"] | |
cierre_raw = params[:cierre] | |
cierre = JSON.parse cierre_raw |
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
public class CommandRegistroCreate implements InterfaceCommand { | |
public registro__c registro; | |
public string action = 'insert'; | |
public CommandRegistroCreate(string id,string departamento, string tipo , string description, decimal monto){ | |
this.registro = new registro__c(); | |
this.registro.Responsable__c = id; | |
this.registro.departamento__c = departamento; |
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
require('lib/setup') | |
Spine = require('spine') | |
GeneralModal = require("modals/generalModal") | |
class App extends Spine.Controller | |
@extend Spine.Controller.ModalController | |
# |
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
RSpine= require "rspine" | |
User = require("models/user") | |
class LoadMananger | |
launchStage: | |
desktop: | |
"appMetrics": ".app-metrics" | |
"menu": ".menu" | |
"newsFeed" : [".news-feed",".small-news-feed"] |
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
require('rspine'); |