Skip to content

Instantly share code, notes, and snippets.

View ciwolsey's full-sized avatar

Carl Wolsey ciwolsey

  • Yorkshire, England
View GitHub Profile
{
// Your GitHub API token
// see: https://github.com/condemil/Gist#generating-access-token
"token": "",
// Show GitHub organizations
// Example: "company1", "company2"
"include_orgs": [],
// Show GitHub users
require 'spec_helper'
describe "Static pages" do
describe "Home page" do
it "should have the content 'Sample App'" do
visit '/static_pages/home'
expect(page).to have_content('Sample App')
end
it "should have the title 'Home'" do
@ciwolsey
ciwolsey / Gemfile
Created February 21, 2014 02:56
Test1
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
gem 'launchy'
@ciwolsey
ciwolsey / derp
Created July 6, 2014 05:18 — forked from anonymous/derp
Template.myTemplate.myHelper = function() {
return myCollection.findOne();
}
// IS THIS ALL YOU'RE TRYING TO EXPLAIN?
<template name="myTemplate">
{{myHelper.status}}
{{myHelper.name}}
</template>
Stand back while Meteorite does its thing
Done installing smart packages
Ok, everything's ready. Here comes Meteor!
[[[[[ ~/projects/microscope ]]]]]
=> Started proxy.
=> Started MongoDB.
<template name="UserStatusList">
<div id="UserStatusList">
{{#each onlineUser}}
<div class="username" style="background-color: {{profile.textcolor}}">
{{ profile.username}}
</div>
{{>foo}}
{{/each}}
</div>
</template>
var Car = {
init: function(){
this.engine = "on";
},
engineToggle: function(){
if (this.engine == "on") this.engine = "off";
if (this.engine == "off") this.engine = "on";
},
engineReportStatus: function(){
console.log(this.engine);
Meteor.startup(function(){
var github = new Github({
version: "3.0.0"
});
^--- i want to inspect the github object
});
I20140919-16:12:08.471(-4)? ----------- getSummonerByName ------------
I20140919-16:12:08.560(-4)? Found update!
I20140919-16:12:08.562(-4)? ----------- getSummonerByName ------------
I20140919-16:12:08.563(-4)? No updates available
I20140919-16:12:13.120(-4)? ----------- getSummonerByName ------------
I20140919-16:12:13.123(-4)? Found update!
I20140919-16:12:13.124(-4)? ----------- getSummonerByName ------------
I20140919-16:12:13.125(-4)? No updates available
I20140919-16:12:18.111(-4)? ----------- getSummonerByName ------------
I20140919-16:12:18.113(-4)? Found update!
Irelia = Npm.require("irelia");
_currentMatches = 0;
_currentMatchesListeners = new Tracker.Dependency();
currentLikeCount = function() {
_currentMatchesListeners.depend();
return _currentMatches;
}
Meteor.setInterval(function() {