Custom implementation of String
's to_i
method
require_relative 'string'
#!/bin/bash | |
curl -fs "https://api.duckduckgo.com/?q=ip&format=json" | jq -r '.Answer' | awk '{print $5}' |
import Ember from 'ember'; | |
import { copy } from '@ember/object/internals'; | |
import { later } from '@ember/runloop'; | |
import { set } from '@ember/object'; | |
export default Ember.Component.extend({ | |
didReceiveAttrs () { | |
this._super(...arguments); | |
if (!this.recordsProxy) { | |
this.recordsProxy = copy(this.records); |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
delete () { | |
this.delete(); | |
} | |
} | |
}); |
source 'https://rubygems.org' | |
gem 'rspec' |
FROM ubuntu:13.10 | |
RUN apt-get update | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install golang | |
RUN mkdir /go | |
RUN export GOPATH=/go | |
ENV GOPATH /go | |
RUN export PATH=$PATH:$GOPATH/bin |
FROM ubuntu:13.10 | |
RUN apt-get update | |
# nginx | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install nginx | |
RUN echo "daemon off;" >> /etc/nginx/nginx.conf | |
# php5-fpm | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install php5-fpm |
FROM ubuntu:12.04 | |
#Install Ruby | |
RUN apt-get update | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install ruby1.9.1 ruby1.9.1-dev make | |
#Pygments doesn't seem to want to work regardless of version installed | |
RUN gem install pygments.rb | |
#Install Jekyll | |
RUN gem install jekyll |