Skip to content

Instantly share code, notes, and snippets.

View DrMabuse23's full-sized avatar
🏠
Working from home

Pascal Brewing DrMabuse23

🏠
Working from home
View GitHub Profile
@nolanlawson
nolanlawson / stuff.md
Last active May 21, 2016 01:48
Stuff I'm working on

Stuff I'm working on

Next up

  • test case for pouchdb/pouchdb#5180
  • monorepo support for GreenKeeper
  • faster watchify build for monorepo
# A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis)
# Check our Studio: https://gentlenode.com/
meteor add iron:router
meteor update iron:router
# Iron Router > Configuration
@Mithrandir0x
Mithrandir0x / gist:3639232
Created September 5, 2012 16:15
Difference between Service, Factory and Provider in AngularJS
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
@emilbjorklund
emilbjorklund / breakpoints_via_css.html
Created April 24, 2012 16:03
Width detection via sneaky CSS rules
<!DOCTYPE html>
<!--[if IE 8]> <html lang="sv-SE" class="no-js ie8"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="sv-SE" class="no-js"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
<title>Breakpoint detection test</title>
<style type="text/css" media="screen">
@media screen and (min-width: 320px) {
#page:after {
content: 'smallest'; /* represent the current width-bracket */
$yii=realpath(dirname(__FILE__).'/../framework/yii.php');
$config=realpath(dirname(__FILE__).'/../site/protected/config/main.php');
require_once($yii);
Yii::createWebApplication($config);
$as=Yii::app()->assetManager;
$as->setBasePath(realpath(dirname(__FILE__).'/../site/assets/'));
Yii::app()->run();