This file contains 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 "test_helper" | |
require "faker" | |
class ArticlesControllerTest < ActionDispatch::IntegrationTest | |
setup do | |
@article = build(:article) | |
end | |
test "should get index" do | |
get articles_url | |
assert_response :success |
This file contains 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
dyvOGeGiPuDjvPs(KQuPyuQqNsfSkLu9kHaMLuYTeI2Lu8lLK0WuLCmvLwMQk9mvrnnIsUMqO2grP(MQuLXPkvLZjLszDkj17uLkvZtiOCpIyFcbzGsPuPoicTqHupKOAIkjUOQI2iP0hjvgPQQCsKyLQ0lvLkLMPqi3uvQyNQOFQedLuSuvv8uPAQePRkLITkeu9vHKXkLsL4ScbQ3Qk0CLsPI7QkYEj5VsmyQdtyXQs5XsYKLuxwXMrsFMu1OjkoTiRwkLQETQGzJu3wOA3O63IA4cLJlLsL0Yf8CenDuUUsTDe8Dvv14vv48kPSEPuY7vLQQ5RKe3xiq2pS6RsQQlusvmvNu1)Tr2nYw1JR61QETsQQhg9Pmx6AXgvxFiVJP6FSqLk5WuAFFTT3NSLDelBz9RS)kBz97VYsrnszjlvxuXsegPHKE9t4DY1J6mYVVu95JycE9uREt1tC2e4c6i8jqMYC1zeR6PAvNOMIMqoArOqPkZjvDYHMQMCIZu9OxKkD5DIOp1kv1f11jwkZf0fwiPx)eivsvmvVEiRuDI11lCywgMOMIMqoAraoEUEtp4gHpbYuMVAyyyyyy4Vn)28l8XFg6rqohWTnXQfSPE1WWWWWlvS8Bta(17Rf8VV(k7gCjUzYKdRgggggggw(A5nzB3rL41HnNpHiBthx5HPoXixnmmmmmmS0)tCwowB3Dwoepi0pr2MoUrayy4iammCeagggggg(DBq0wRLy52UFhb97g9cEImY20vDwiPx)eusvDszY)VWvDszY)VWjwXsegft1574sdj96NaP68RQxNiB738kwIWO6cAAvFTfQujhM68733xZZp)8RxV3777VrSQtNf1kPQEIRpK3Xusv94BAwsjvXumvNjOhotjv1JVPzjLuftXu9kAbjPsQQtM46PhvFLFAdLvumvNQOILYCLuvp(MMLusvmft13KtPIwqsQ6SWEu9qMEusv94BAwsjvXumvNjOho7xLuvp(MMLusvmft1JrigtqpCMsQQ |
This file contains 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 React from 'react'; | |
import { View, Text, Image } from 'react-native'; | |
import { Button } from 'react-native-elements'; | |
import { StackNavigator, SwitchNavigator } from 'react-navigation'; // Version can be specified in package.json | |
import { YellowBox } from 'react-native'; | |
import store from './redux/store'; | |
import { Provider, connect } from 'react-redux'; | |
import firebase from 'firebase'; | |
import ModalScreen from './components/Modal'; | |
import HomeScreen from './components/HomeScreen'; |
This file contains 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 React from 'react'; | |
import { View, Text, Image } from 'react-native'; | |
import { Button } from 'react-native-elements'; | |
import { StackNavigator, SwitchNavigator } from 'react-navigation'; // Version can be specified in package.json | |
import { YellowBox } from 'react-native'; | |
import store from './redux/store'; | |
import { Provider, connect } from 'react-redux'; | |
import firebase from 'firebase'; | |
import ModalScreen from './components/Modal'; | |
import HomeScreen from './components/HomeScreen'; |
This file contains 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 React, { Component } from 'react'; | |
import classNames from 'classnames'; | |
import { FormControl } from 'material-ui/Form'; | |
import { Redirect } from 'react-router-dom'; | |
import InputFields from '../UI/Input/InputFields'; | |
import Button from '../UI/Button/RaisedButton'; | |
import Util from '../../util/Util'; | |
import firebase from 'firebase'; | |
import ErrorLabel from '../UI/Errors/ErrorLabel'; | |
import Loading from '../UI/Loading/Loading'; |
This file contains 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
static checkLossPerk = (perkProgress, removed) => { | |
let tempArray = new Array(removed); | |
for (let i=removed; i>0; i--){ | |
if (perkProgress % 3 === 0) { | |
console.log("Can't lose any!"); | |
} | |
else { | |
perkProgress-- | |
console.log(perkProgress, "Lost one") |
This file contains 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
namespace :cards do | |
desc "Create cards" | |
task :create_cards => :environment do | |
cards = MTG::Card.all | |
cards.each do |card| | |
puts card.name + '-' + card.set | |
card.image_url.blank? ? image_url = "/assets/mtgCardBack.jpg" : image_url = card.image_url | |
card.legalities each do |x| | |
y = [] | |
y << {x.format => x.legality} |
This file contains 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
"[#<MTG::Legality:0x0000000539e900 @representable_attrs={:features=>{Representable::JSON=>true}, :definitions=>{\"format\"=>#<Representable::Definition ==>format @options={:parse_filter=>[], :render_filter=>[], :as=>\"format\"}>, \"legality\"=>#<Representable::Definition ==>legality @options={:parse_filter=>[], :render_filter=>[], :as=>\"legality\"}>}, :options=>{}, :wrap=>nil}, @format=\"Commander\", @legality=\"Legal\">, #<MTG::Legality:0x0000000539c3d0 @representable_attrs={:features=>{Representable::JSON=>true}, :definitions=>{\"format\"=>#<Representable::Definition ==>format @options={:parse_filter=>[], :render_filter=>[], :as=>\"format\"}>, \"legality\"=>#<Representable::Definition ==>legality @options={:parse_filter=>[], :render_filter=>[], :as=>\"legality\"}>}, :options=>{}, :wrap=>nil}, @format=\"Legacy\", @legality=\"Legal\">, #<MTG::Legality:0x0000000539afd0 @representable_attrs={:features=>{Representable::JSON=>true}, :definitions=>{\"format\"=>#<Representable::Definition ==>format @options={:pars |
This file contains 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
<% provide(:title, @user.name) %> | |
<div class="row"> | |
<aside class="col-md-4"> | |
<section class="user_info"> | |
<h1> | |
<%= gravatar_for @user %> | |
<%= @user.name %><br> | |
</h1> | |
</section> | |
</aside> |
This file contains 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
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match */* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
NewerOlder