This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Http, | |
RequestOptions, | |
BaseRequestOptions, | |
ResponseOptions, | |
BaseResponseOptions, | |
BrowserXhr, | |
XHRBackend, | |
} from 'angular2/http'; | |
import {Config} from 'ng2-ui-auth'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
require 'open-uri' | |
class Scraper | |
def self.scrape_page url | |
Nokogiri::HTML(open(url)) | |
end | |
def self.to_json | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if disabled %}disabled{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Joe Mastey: (Effectively) building a (self-sustaining) culture of learning | |
@jmmastey | |
josephmastey.com | |
What he's working with is not people who are new to the field. He wants to get people over the course of their careers to get better at what they're doing. The fact that they start learning the algorithms early on is great, but you're supposed to be a better craftsman year after year. | |
About his company: | |
- Fast-paced in a good day | |
- Deadline driven in a less good way | |
- Dozens of Rails codebases from 1.2 to 4.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tabLabel" => "\\*Project Title", | |
"value" => pledge.project.title, | |
}, | |
{ | |
"tabLabel" => "\\*Investment Amount", | |
"value" => pledge.currency_pretty_amount, | |
}, | |
{ | |
"tabLabel" => "\\*Issuer Name", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
console.log("Page path: {{ page.path }}"); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if site.include_project_location and projects_nearby.size > 0 %} | |
<div class="home-popular-project"> | |
<div class="container_12"> | |
<div class="grid_12 wrap-title"> | |
<h2 class="common-title">Projects near {{ current_city }}</h2> | |
<a class="be-fc-orange" href="/{{ locale }}/explore?query={{ current_city }}">View all</a> | |
</div> | |
<div class="clear"></div> | |
<div class="lst-popular-project clearfix"> | |
{% for project in projects_nearby %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: #<NoMethodError: undefined method `new' for RbConfig:Module> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addresses=[] | |
CSV.readlines("emails.csv").each do |file| | |
addresses << file | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/crontab: system-wide crontab | |
# Unlike any other crontab you don't have to run the `crontab' | |
# command to install the new version when you edit this file | |
# and files in /etc/cron.d. These files also have username fields, | |
# that none of the other crontabs do. | |
SHELL=/bin/sh | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
# m h dom mon dow user command |