Skip to content

Instantly share code, notes, and snippets.

if (Meteor.isClient) {
Template.template_main.results = function () {
return Session.get("recentUsage") || [];
}
Template.template_sidebar.events = {
'change .radio': function () {
var plant = this.key;
Meteor.call('latestPowerUsage', plant);
}
@snize
snize / Japanese tea.md
Created June 5, 2013 00:57
The name of the Japanese tea that you can use for your project.
  • Sencha
  • Gyokuro
  • Matcha
  • Kukicha
  • Konacha
  • Bancha
  • Kabusecha
  • Tencha
  • Genmaicha
  • Houjicha
@snize
snize / config.fish
Created May 31, 2013 02:47
Settings for fish-shell ~/.config/fish/config.fish
# homebrew
set -x PATH /usr/local/bin /usr/local/sbin $PATH
# phpenv
#eval "$(phpenv init -)"
set -x PATH $HOME/.phpenv/bin $PATH
set -x PATH $HOME/.phpenv/shims $PATH
phpenv rehash >/dev/null ^&1
# rbenv
@snize
snize / index.html
Created May 30, 2013 07:53
Meteor YouTube Search
<head>
<meta charset="UTF-8">
<title>Meteor YouTube Search</title>
</head>
<body>
<h1>YouTube Search</h1>
{{> youtubeSearch}}
</body>
<template name="youtubeSearch">
<?php namespace App;
class Calc
{
public function add($a, $b)
{
return $a + $b;
}
}
class GuestbookTest extends PHPUnit_Extensions_Database_TestCase
{
public function testAddEntry()
{
$guestbook = new Guestbook();
$guestbook->addEntry("suzy", "Hello world!");
$queryTable = $this->getConnection()->createQueryTable(
'guestbook', 'SELECT * FROM guestbook'
);