Skip to content

Instantly share code, notes, and snippets.

View Primigenus's full-sized avatar
💭
Escape the cyberpunk dystopia

Rahul Primigenus

💭
Escape the cyberpunk dystopia
View GitHub Profile
@Primigenus
Primigenus / template.posts.html
Last active August 29, 2015 14:10
An attempt at mocking a drastic simplification of routing in Meteor
<template name="posts" url="/posts" lang="en" layout="main">
{{#contentFor region="header"}}
<h1>Posts</h1>
{{/contentFor}}
{{#contentFor region="body"}}
<article>
{{#each posts}}
<p>{{title}}</p>
{{/each}}
@Primigenus
Primigenus / keybase.md
Created September 27, 2014 10:12
Keybase verification

Keybase proof

I hereby claim:

  • I am primigenus on github.
  • I am primigenus (https://keybase.io/primigenus) on keybase.
  • I have a public key whose fingerprint is 989B F279 DA3A FC69 AA3B BC78 B35B 6C75 3069 9C26

To claim this, I am signing this object:

@Primigenus
Primigenus / gist:5928718
Created July 4, 2013 15:43
A modified version of the Olark script that works (somewhat) with turbolinks
<!-- begin olark code -->
<script data-cfasync="false">
function initOlark(){
c = {loader: "static.olark.com/jsclient/loader0.js",name:"olark",methods:["configure","extend","declare","identify"]};
var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",z=c.name,r="load";var nt=function(){f[z]=function(){(a.s=a.s||[]).push(arguments)};var a=f[z]._={},q=c.methods.length;while(q--){(function(n){f[z][n]=function(){f[z]("call",n,arguments)}})(c.methods[q])}a.l=c.loader;a.i=nt;a.p={0:+new Date};a.P=function(u){a.p[u]=new Date-a.p[0]};function s(){a.P(r);f[z](r)}f.addEventListener?f.addEventListener(r,s,false):f.attachEvent("on"+r,s);var ld=function(){function p(hd){hd="head";return["<",hd,"></",hd,"><",i,' onl' + 'oad="var d=',g,";d.getElementsByTagName('head')[0].",j,"(d.",h,"('script')).",k,"='",l,"//",a.l,"'",'"',"></",i,">"].join("")}var i="body",m=d[i];if(!m){return setTimeout(ld,100)}a.P(1);var j="appendChild",h="createElement",k="src",n=d[h]("div"),v=n[j](d[h](z)),b=d[h]("iframe"),g="doc
@Primigenus
Primigenus / test.html
Last active December 10, 2015 03:48
An example illustrating how to get Meteor to show a menu only when a certain item is clicked. Used in the answer to this question on Stack Overflow: http://stackoverflow.com/questions/14034556/what-is-the-proper-way-to-manipulate-template-instance-in-meteor-framework
<head>
<title>Test</title>
</head>
<body>
{{> Restaurants}}
</body>
<template name="Restaurants">
<ul>
@Primigenus
Primigenus / dabblet.css
Created December 5, 2012 13:35
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #006;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;