Skip to content

Instantly share code, notes, and snippets.

@Tasemu
Tasemu / project.js
Last active December 31, 2015 14:49
Projects and tasks with angularjs
App.factory('Project', function($resource) {
return $resource(
'/api/v1/projects/:id.json',
{id: '@id'},
{
update: {
method: 'PUT',
params: { id: '@id' },
isArray: false
}
<h1>Listing jobs</h1>
<table>
<thead>
<tr>
<th>Title</th>
<th>Description</th>
<th>Tea</th>
<th></th>
<th></th>
@Tasemu
Tasemu / scrape.rake
Last active December 25, 2015 18:28
HTML Scraper Practise
task :scrape => :environment do
require 'nokogiri'
require 'open-uri'
text = []
invalid = []
i = 0
File.read("text.txt").each_line do |line|