This file contains 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
Program | |
program = { decl } | |
Declarações | |
decl = type var_list | type id "=" ( id | num | expr ) | func_decl | array | struct. | |
var_list = id { "," id } "\n". | |
array = type id "[" num "]" | type id "[" num "]" "=" "{" cte {, cte} "}". | |
struct = "struct" id "{" struct_var_list "}" | |
struct_var_list = type id "\n" { type id "\n" }. | |
type = "int" | "char" | "float" | "bool" | "void". |
This file contains 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
Rails CMS alternatives | |
====================== | |
Active projects: | |
--------------- | |
adva-cms | |
repo: http://github.com/svenfuchs/adva_cms/ | |
site: http://adva-cms.org/ | |
Last update: 11/24/09 | |
"the cutting edge Rails CMS platform" |
This file contains 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
#!/bin/sh | |
# Install ImageMagick on Snow Leopard: by kain, improved by mislav and samsoffes | |
# http://www.icoretech.org/2009/08/install-imagemagick-in-leopard-snow-leopard/ | |
# Work with 64bit kernel mode | |
set -e | |
PREFIX=/usr/local | |
# Passenger users: amend your Apache global configuration with the following directive | |
# SetEnv PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin |
This file contains 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 you're using Vagrant, you're probably using VirtualBox shared folders feature in order to access your files from inside the VM. The problem is, virtual box shared folders can get preeeety slow. But, the awesome vagrant guys already dealed with that: http://vagrantup.com/docs/nfs.html. The solution is to use NFS. | |
Here's my "bechmark" comparing using shared folder, native VM filesystem and NFS. | |
# Host machine: MacBook Pro, 8GB RAM | |
# Guest Machine: Ubuntu 10.04 LTS, 750MB RAM | |
# Putting the Rails app files in the Mac, using VirtuaBox shared folders, |
This file contains 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
2012-08-01T14:39:08+00:00 app[web.1]: [Wed Aug 01 2012 14:39:08 GMT+0000 (UTC)] ERROR Unable to load /app/node_modules/hubot-scripts/src/scripts/dilbert: Error: Cannot find module 'htmlparser' | |
2012-08-01T14:39:08+00:00 app[web.1]: Error: Cannot find module 'htmlparser' | |
2012-08-01T14:39:08+00:00 app[web.1]: at Function._resolveFilename (module.js:337:11) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Function._load (module.js:279:25) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Module.require (module.js:359:17) | |
2012-08-01T14:39:08+00:00 app[web.1]: at require (module.js:375:17) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Object.<anonymous> (/app/node_modules/hubot-scripts/src/scripts/dilbert.coffee:4:16) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Object.<anonymous> (/app/node_modules/hubot-scripts/src/scripts/dilbert.coffee:35:4) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Module._compile (module.js:446:26) | |
2012-08-01T14:39:08+00:00 app[web.1]: at Object..coffee (/app/node_modules/hubot/node_modu |
This file contains 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
/** | |
* Simple example os stacking context | |
*/ | |
* { | |
margin: 0; | |
} | |
html { | |
padding: 20px; | |
font: 12px/20px Arial, sans-serif; |
This file contains 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
/** | |
* Stacking context example - broken stacked menus | |
*/ | |
div { font: 12px Arial; } | |
span.bold { font-weight: bold; } | |
div.lev1 { | |
width: 250px; |
This file contains 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
<div></div> |
This file contains 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
/** | |
* seta com animacao | |
*/ | |
span { | |
animation: bounce 0.7s infinite ease; | |
position: relative; | |
font-size: 3em; | |
} |
This file contains 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
# features/step_definitions/search_steps.rb | |
When /^I search for "([^"]*)"$/ do |search_term| | |
search_catalogue_with search_term, :using_direct_model_access | |
end | |
# features/support/search_support.rb | |
module SearchSupport | |
class SearchAutomator |