Skip to content

Instantly share code, notes, and snippets.

View d0nkeyBOB's full-sized avatar
💭
on a mission to learn all things

Rich d0nkeyBOB

💭
on a mission to learn all things
  • Self Employed
  • 17:20 (UTC -12:00)
View GitHub Profile
@d0nkeyBOB
d0nkeyBOB / require.config.js
Created September 30, 2013 14:47
require-config
require.config({
'deps': ['main'],
'baseUrl': './js/',
'paths': {
'app' : 'app',
'jquery': 'vendor/jquery',
'angular': 'vendor/angular/angular',
'angular-mobile': 'vendor/angular/angular-touch',
'underscore': 'vendor/underscore/underscore.min',
@d0nkeyBOB
d0nkeyBOB / app.js
Created September 30, 2013 14:48
angualr-app-require
define([
'angular',
'app',
'load-context',
'angular-mobile',
], function(angular, app) {
return angular.module('mobileeo', ['mobileeo.services', 'load-context', 'ngMobile'])
.run(function($rootScope, $route, $location, $routeParams) {
<!-- Proguard, via une tâche Ant, pour être indépendant des plugins d'intégration
pour Maven car aucun d'eux n'est officiel et correctement maintenu -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<configuration>
<proguardVersion>4.9</proguardVersion>
</configuration>
<dependencies>
<dependency>
@d0nkeyBOB
d0nkeyBOB / 0_reuse_code.js
Created November 22, 2013 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@d0nkeyBOB
d0nkeyBOB / javascript_resources.md
Created November 22, 2013 14:18 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@d0nkeyBOB
d0nkeyBOB / css_resources.md
Created November 22, 2013 14:18 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@d0nkeyBOB
d0nkeyBOB / new_gist_file
Created November 22, 2013 16:05
install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
on run {input, parameters}
cd(input)
end run
on cd(dir)
tell application "iTerm"
activate
set miniaturized of windows to false
try
/* All Smartphones in portrait and landscape ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* YOUR STYLE GOES HERE */
}
/* All Smartphones in landscape ----------- */
@media only screen
and (min-width : 321px) {
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../yt-video/yt-search-video.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;