Skip to content

Instantly share code, notes, and snippets.

Escape the cyberpunk dystopia

Rahul Primigenus

Escape the cyberpunk dystopia
View GitHub Profile
Primigenus / template.posts.html
Last active Aug 29, 2015
An attempt at mocking a drastic simplification of routing in Meteor
View template.posts.html
<template name="posts" url="/posts" lang="en" layout="main">
{{#contentFor region="header"}}
{{#contentFor region="body"}}
{{#each posts}}
Primigenus /
Created Sep 27, 2014
Keybase verification

Keybase proof

I hereby claim:

  • I am primigenus on github.
  • I am 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 / gist:5928718
Created Jul 4, 2013
A modified version of the Olark script that works (somewhat) with turbolinks
View gist:5928718
<!-- begin olark code -->
<script data-cfasync="false">
function initOlark(){
c = {loader: "",name:"olark",methods:["configure","extend","declare","identify"]};
var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",,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 / test.html
Last active Dec 10, 2015
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:
View test.html
{{> Restaurants}}
<template name="Restaurants">
Primigenus / dabblet.css
Created Dec 5, 2012
The first commented line is your dabblet’s title
View dabblet.css
* The first commented line is your dabblet’s title
background: #006;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;