Skip to content

Instantly share code, notes, and snippets.

View cakesmith's full-sized avatar

Nick LaRosa cakesmith

  • Diameter Health
  • New Jersey
View GitHub Profile
@cakesmith
cakesmith / gist:8c6de241bb912ff87b0e
Last active August 29, 2015 14:03
How to console.log() a deep object in Node.js
var myObject = {
"a":"a",
"b":{
"c":"c",
"d":{
"e":"e",
"f":{
"g":"g",
"h":{
"i":"i"
@cakesmith
cakesmith / configureIonic.md
Last active August 29, 2015 14:03
Configuring ionic

#Configuring ionic framework for android ##on 64 bit crunchbang, need to install jdk and 32 bit libraries for android:

  • sudo apt-get install ant openjdk-7-jdk lib32sdc++6 lib32z1

  • install 64 bit android-sdk-linux

  • cd ~/android-sdk-linux/tools

  • ./android update sdk --no-ui

  • create repository at github

  • in project directory:

    • git init
    • git add .
    • git commit -m 'initial commit'
    • git remote add origin https://github.com/cakesmith/repo.git
    • git push origin master
@cakesmith
cakesmith / about.js
Created July 10, 2014 18:47
Angular Boilerplate
(function(app) {
app.config(['$stateProvider', function ($stateProvider) {
$stateProvider.state('about', {
url: '/about',
views: {
"main": {
controller: 'AboutController',
templateUrl: 'about/about.tpl.html'
}
@cakesmith
cakesmith / minimatch.md
Created July 11, 2014 12:54
minimatch to exclude *.spec.js from grunt globbing!

#Minimatch pattern to exclude *.spec.js from grunt

'app/scripts/**/!(*spec).js'
@cakesmith
cakesmith / index.html
Last active August 29, 2015 14:04
bootstrap offcanvas navigation
/*
* Style tweaks
* --------------------------------------------------
*/
html,
body {
overflow-x: hidden; /* Prevent scroll on narrow devices */
}
body {
(function (app) {
'use strict';
app.config(function($urlRouterProvider, $stateProvider) {
$stateProvider
.state('landing', {
url: '/landing',
templateUrl: '/states/landing/landing.html'
});
@cakesmith
cakesmith / index.html
Created August 5, 2014 17:54
[AngularJS] Overriding directives with a decorator....A Pen by Nick LaRosa.
<div ng-app="codepen">
<a href="" class="blue">Not Yellow</a>
<br>
<a href="" class="overridden">Yellowish</a>
</div>
import Graphics.Element (..)
import Graphics.Input.Field as Field
import Signal
import List (head)
import Char (..)
import String (length, slice, toList, indexes, cons, map)
import Text (plainText)
content : Signal.Channel Field.Content
content =
@cakesmith
cakesmith / MyTreeView.cs
Created April 22, 2015 23:14
Bug Fix for TreeView Component checkbox (doubleclick)
using System;
using System.Windows.Forms;
public class MyTreeView : TreeView {
protected override void WndProc(ref Message m) {
// Suppress WM_LBUTTONDBLCLK
if (m.Msg == 0x203) { m.Result = IntPtr.Zero; }
else base.WndProc(ref m);
}
}