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/bash | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
# if there is not TEMPLATE folder | |
if [ -z "$TEMPLATES" ]; then | |
printf "%sbin/savior:%s TEMPLATES variable not set\n" "$bold" "$normal" | |
exit 1 | |
fi |
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
const choo = require('choo') | |
const component = require('./title.choo') | |
const app = choo() | |
app.model(component.model) | |
app.router((route) => [ | |
route('/', component.view) | |
]) |
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
# bashrc for c9 workspaces | |
# by Yerko Palma | |
. /etc/apache2/envvars | |
# If not running interactively, don't do anything else | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines or lines starting with space in the history. | |
# See bash(1) for more options |
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
<%= form_for(:user, :url => {:action => 'create', :controller=>"users"}, :class => "col s12") do |f| %> | |
<% cities_array = @regiones.map { |city| [city[:nombre], city[:codigo]] } %> | |
<%= f.select( :region, options_for_select(cities_array), {}, {}) %> | |
<%= f.label :region %> | |
<%= f.select(:comuna, [], {}, {}) %> | |
<%= f.label :comuna %> | |
<button type="submit" name="action">Siguiente</button> |