$ curl -L git.io/nodebrew | perl - setup
write this in your bashrc or zshrc.
#coding:utf-8 | |
""" | |
unofficial Google Weather API | |
http://www.google.com/ig/api?weather=,,,35693692,139700260&hl=ja | |
レスポンスのエンコーディングは hl=jaの場合Shift-JIS hl=enの場合ASCII | |
<xml_api_reply version="1"> | |
<weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0"> | |
<forecast_information> |
require "open-uri" | |
[ | |
"http://pastebin.com/raw.php?i=Kc9ng18h", | |
"http://pastebin.com/raw.php?i=vCMndK2L", | |
"http://pastebin.com/raw.php?i=JdQkuYwG", | |
"http://pastebin.com/raw.php?i=fw43srjY" | |
].each do |url| | |
open(url).each_line do |line| | |
name, password = line.chomp.split(/:/) |
$ curl -L git.io/nodebrew | perl - setup
write this in your bashrc or zshrc.
Plug 0.10.0 moves CSRF tokens from cookies back to sessions. To avoid future bumps on the road, a get_csrf_token/0
function has been added to controllers and imported into views. Update all your csrf token reference code to use the new function. Additionally, form_tag
and link
helpers have been added that will inject the csrf token for you automatically. You should transition to these new functions where possible, ie:
<%= form_tag("/hello", method: :post) %>
... your form stuff. csrf is inject for you
</form>
[package] | |
name = "nickel-helloworld-postgres" | |
version = "0.1.0" | |
authors = ["johndoe"] | |
[dependencies] | |
nickel = "*" | |
r2d2 = "*" | |
postgres = "*" | |
openssl = "*" |
# If you are on a VM (like me), I did the following on Peppermint 5 VM on VirtualBox. | |
sudo apt-get install vagrant virtualbox | |
# Make a directory named demo. | |
mkdir demo | |
cd demo | |
# add vagrant virtual box that can be used to initialize VM instances |
// Convert numbers to words | |
// copyright 25th July 2006, by Stephen Chapman http://javascript.about.com | |
// permission to use this Javascript on your web page is granted | |
// provided that all of the code (including this copyright notice) is | |
// used exactly as shown (you can change the numbering system if you wish) | |
/* | |
Documentation: Usage | |
===================== | |
1. Import the javascript file: |