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
task :scrape => :environment do | |
require 'nokogiri' | |
require 'open-uri' | |
text = [] | |
invalid = [] | |
i = 0 | |
File.read("text.txt").each_line do |line| |
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
<h1>Listing jobs</h1> | |
<table> | |
<thead> | |
<tr> | |
<th>Title</th> | |
<th>Description</th> | |
<th>Tea</th> | |
<th></th> | |
<th></th> |
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
App.factory('Project', function($resource) { | |
return $resource( | |
'/api/v1/projects/:id.json', | |
{id: '@id'}, | |
{ | |
update: { | |
method: 'PUT', | |
params: { id: '@id' }, | |
isArray: false | |
} |
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
app.controller('UserCtrl', ['$scope', 'User', function ($scope, User) { | |
User.query().$promise.then(function (users) { | |
console.log(users[0]); | |
}); | |
}]); |
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
app.controller('homeController', function ($scope, manga, $timeout) { | |
console.log('homeController Initialized'); | |
$scope.visibleManga = []; | |
manga.getNewManga(function (manga) { | |
$scope.newManga = manga; | |
$scope.visibleManga = $scope.newManga.slice(1, 25); | |
$scope.app.loading = false; | |
}); | |
$scope.loadMore = function() { |
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
/** @jsx React.DOM */ | |
(function (React) { | |
var data = [ | |
'Go to work', | |
'Play Albion Online', | |
'Keep learning React' | |
] |
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
#include <iostream>; | |
using namespace std; | |
int betty = 5; | |
void changeBetty (x) { | |
betty = x; | |
} | |
void main () { |
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
#include <iostream> | |
using namespace std; | |
void doubleNumbers (int x) { | |
cout << x * 2 << endl; | |
} | |
void doubleNumbers (double x) { | |
cout << x * 2 << endl; | |
} |
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
// ConsoleApplication1.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include "Hero.h" | |
using namespace std; | |
void mainmenu(); | |
void createNewHero(); |
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
#include <iostream> | |
#include <string> | |
using namespace std; | |
class Enemy { | |
protected: | |
int attackPower; | |
int hp; | |
public: | |
void setAttackPower (int x) { |
OlderNewer