One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 | |
ether 02:d4:a1:79:94:00 | |
inet 192.168.2.110 netmask 0xffffff00 broadcast 192.168.2.255 | |
nd6 options=1<PERFORMNUD> | |
groups: bridge | |
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 | |
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 | |
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 | |
member: epair3a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> | |
ifmaxaddr 0 port 8 priority 128 path cost 2000 |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
}); |
I, [2014-01-07T15:37:37.118523 #19797] INFO -- : executing ["/srv/rails/current/bin/unicorn", "-c", "/srv/rails/current/config/unicorn.rb", {12=>#<Kgio::UNIXServer:fd 12>}] (in /srv/rails/releases/20140107091945) | |
I, [2014-01-07T15:37:37.118983 #19797] INFO -- : forked child re-executing... | |
I, [2014-01-07T15:37:38.998632 #19797] INFO -- : inherited addr=/srv/rails/shared/sockets/unicorn.sock fd=12 | |
I, [2014-01-07T15:37:38.999038 #19797] INFO -- : Refreshing Gem list | |
I, [2014-01-07T15:37:41.927794 #19967] INFO -- : Refreshing Gem list | |
/srv/rails/shared/bundle/ruby/2.0.0/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:219:in `pid=': Already running on PID:19967 (or pid=/srv/rails/shared/pids/unicorn.pid is stale) (ArgumentError) | |
from /srv/rails/shared/bundle/ruby/2.0.0/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:151:in `start' | |
from /srv/rails/shared/bundle/ruby/2.0.0/gems/unicorn-4.7.0/bin/unicorn:126:in `<top (required)>' | |
from /srv/rails/current/bin/unicorn:16:in `load' | |
from |
unless File.exists?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', '4.0.0' | |
gem 'sqlite3' | |
GEMFILE | |
system 'bundle' | |
end |
namespace :db do | |
namespace :seed do | |
desc "Adaug medici in baza de date" | |
task :medici => :environment do | |
Medic.create!(:nume => "Serafinceanu", :prenume => "Cristian", :cod_parafa => "282828") | |
Medic.create!(:nume => "Craciun", :prenume =>"Anne-Marie", :cod_parafa =>"999") | |
end | |
end | |
end |
#Hangman | |
import random | |
words = ["apple", "banana", "pen", "cat", "dog", "bee", "pig"] | |
print "Welcome to the Hangman game. You will have six chances to guss my secret word correctly. Good luck!" | |
word = words[random.randint(0,len(words)-1)] | |
def dash(word): | |
list = [] | |
for i in word: | |
list.append("_ ") |
#Hangman | |
import random | |
words = ["apple", "banana", "pen", "cat", "dog", "bee", "pig"] | |
print "Welcome to the Hangman game. You will have six chances to guss my secret word correctly. Good luck!" | |
word = words[random.randint(0,len(words)-1)] | |
def dash(word): | |
list = [] | |
for i in word: | |
list.append("_") |
resources :studentinfos do | |
get ':type' => 'studentinfos#type', constraints: { type: /\d+/ } | |
end |
class OtoplastikCustomer < Customer | |
def otoplastik? | |
true | |
end | |
def prices(article) | |
query = lambda do |merchant_code| | |
OtoplastikArticlePrice.where("otoplastik_article_id = ? AND merchant_code = ?", article.id, merchant_code).order("minimum DESC") | |
end |