You'll find the talks here
Approaching frontend as a backend developer, Svelte feels surprisingly pythonic. Let's take a quick look at what's familiar, what's foreign, and how to explore the gap.
You'll find the talks here
Approaching frontend as a backend developer, Svelte feels surprisingly pythonic. Let's take a quick look at what's familiar, what's foreign, and how to explore the gap.
| const PASS = ['32']; // green | |
| const FAIL = ['31', '1']; // red, bold | |
| function logStyle(ansiEscapeCodes, text) { | |
| console.log(`\x1b[${ansiEscapeCodes.join(';')}m${text}\x1b[0m`); | |
| } | |
| class Tester { | |
| constructor() {} |
| [ | |
| { | |
| "url": "http://money.cnn.com", | |
| "rss": "http://rss.cnn.com/rss/money_topstories.rss" | |
| }, | |
| { | |
| "url": "http://thehill.com", | |
| "rss": "http://thehill.com/rss/syndicator/19110" | |
| }, | |
| { |
| # config/initializers/formtastic.rb | |
| module FormtasticBootstrap | |
| class FormBuilder < Formtastic::FormBuilder | |
| # Allow "split-field" inputs such as name (first+last) or location (city+state). | |
| # Block contents are wrapped in a ".controls" field set next to the specified | |
| # +label+ | |
| # | |
| # Usage: | |
| # |
| export PROJECT_NAME=$1 | |
| export WORKING_DIR=/me/prj/$PROJECT_NAME | |
| cd $WORKING_DIR; | |
| # create the session | |
| tmux start-server | |
| tmux new-session -d -s $PROJECT_NAME -n work | |
| # start vim in working dir | |
| tmux select-window -t$PROJECT_NAME:1 |
| #!/usr/bin/env bash | |
| apt-get -y update | |
| apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev | |
| cd /tmp | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz | |
| tar -xvzf ruby-1.9.3-p125.tar.gz | |
| cd ruby-1.9.3-p125/ | |
| ./configure --prefix=/usr/local | |
| make | |
| make install |
| <!-- A scaffolded edit view converted to mustache --> | |
| <h1>Editing post</h1> | |
| {{#form}} | |
| {{#errors?}} | |
| <div id="error_explanation"> | |
| <h2>{{error_header}}</h2> | |
| </div> | |
| <ul> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Playlister</title> | |
| <link rel="stylesheet" href="sp://import/css/adam.css"> | |
| <link rel="stylesheet" href="styles.css"> | |
| <script type="text/javascript" src="js/jquery.min.js"></script> | |
| </head> |
| # autoload concerns | |
| module YourApp | |
| class Application < Rails::Application | |
| config.autoload_paths += %W( | |
| #{config.root}/app/controllers/concerns | |
| #{config.root}/app/models/concerns | |
| ) | |
| end | |
| end |