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
<ion-side-menus enable-menu-with-back-views="true">
<ion-side-menu-content>
<ion-nav-bar class="bar-stable">
<ion-nav-buttons side="primary">
<button class="button button-icon button-clear ion-navicon" menu-toggle="left"></button>
</ion-nav-buttons>
<ion-nav-back-button></ion-nav-back-button>
</ion-nav-bar>
<ion-nav-view name="pageContent"></ion-nav-view>
</ion-side-menu-content>
// The path for our ionicons font files, relative to the built & temporary module.css
$fontpath: "../assets/fonts";
$ionicons-font-path: $fontpath !default;
$fonts: 'BoschSans-Black', 'BoschSans-Bold', 'BoschSans-Light', 'BoschSans-Medium', 'BoschSans-Regular';
@each $name in $fonts {
//@debug $name;
$path: '#{$fontpath}/#{$name}';
//@debug $path;
//@debug '#{$path}.eot';
var blessed = require('blessed')
, contrib = require('blessed-contrib')
, screen = blessed.screen();
var grid = new contrib.grid({rows: 12, cols: 12, screen: screen});
var tree = grid.set(0, 0, 4, 4, contrib.tree, {label: 'Commands'});
//allow control the table with the keyboard
tree.focus();
var log = grid.set(4, 2, 2, 2, contrib.log,
# 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
@DrMabuse23
DrMabuse23 / Webstorm es Component
Created April 10, 2015 13:08
Angular ES6 Webstorm Component
import {Component, Template, If} from 'angular2/angular2';
@Component({
selector: '$NAME'
})
@Template({
inline: `<div *if="$NAME">{{$NAME}}</div>`,
directives: [If]
})
export class $NAME {
Regex
All
Errors
Warnings
Info
Logs
Debug
Hide network messages
.
ar deferred = $q.defer();
$http.get('/api/jobs?limit=' + limit + '&full=true').success(function(data) {
var jobs = [];
for (var i = 0; i < data.objects.length; i ++) {
jobs.push(new Job(data.objects[i]));
}
deferred.resolve(jobs);
});
@DrMabuse23
DrMabuse23 / app.js
Created September 28, 2014 11:01
load youtube js
function onYouTubeIframeAPIReady() {
console.log( 'youtube api loaded' );
$( document ).trigger('youtube-ready');
}
requirejs( [
'jquery' ,
] ,
function ( $ ) {
/**
/**
* Created by pascal on 26.09.14.
* @name StorageList
*/
'use strict';
requirejs(['can/util/library', 'can/control','can/model','can/route','can/map'], function(can){
var APIURL = 'test';
/**
/**
* Created by pascal on 26.09.14.
* @name StorageList
*/
'use strict';
requirejs(['can/util/library', 'can/control','can/model','can/route'], function(can){
var APIURL = 'test';
/**