Keep first n-1 digits the same, last digit is free to increment to some arbitrary value
~>1: >=1.0.0 <2.0.0
~>1.0: >=1.0.0 <2.0.0
~>1.2.3: >=1.2.3 <1.3.0
~>0.1: >=0.1.0 <1.0.0
~>0.1.3: >=0.1.3 <0.2.0
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# requests/edit_post_spec.rb | |
require 'spec_helper' | |
feature 'editing a post', js: true do | |
let(:post) { create :post } | |
let(:user) { post.creator } | |
before { sign_in user } |
import java.util.*; | |
class Programmer { | |
private String name; | |
private int age; | |
private List<String> languages; | |
public Programmer(String name) { | |
this.name = name; | |
this.languages = new ArrayList<String>(); |
site 'http://community.opscode.com/api/v1' | |
cookbook 'sprout-osx-base', | |
:git => 'git://github.com/pivotal-sprout/sprout.git', | |
:path => 'sprout-osx-base' | |
cookbook 'pivotal_workstation', | |
:git => 'git://github.com/pivotal-sprout/sprout.git', | |
:path => 'pivotal_workstation' | |
Standard practices say no non-root process gets to talk to the Internet on a port less than 1024. How, then, could I get Node talking on port 80 on EC2? (I wanted it to go as fast as possible and use the smallest possible share of my teeny tiny little micro-instance's resources, so proxying through nginx or Apache seemed suboptimal.)
Alter the port the script talks to from 8000 to 80:
}).listen(80);
=# select (1!=1); | |
?column? | |
---------- | |
f | |
(1 row) | |
=# select (1=1); | |
?column? | |
---------- | |
t |
require "active_record" | |
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:") | |
ActiveRecord::Schema.define do | |
create_table :languages do |t| | |
t.string :type | |
end | |
end |