- http://www.thinkster.io/
- http://kwakwak-code.blogspot.co.il/2014/01/angularjs-form-validation-custom.html
- http://www.toontuts.com/beginning-with-angularjs/
- egghead.io
- http://www.williambrownstreet.net/blog/2014/04/faster-angularjs-rendering-angularjs-and-reactjs/
- http://nadeemkhedr.wordpress.com/
- https://www.codeschool.com/courses/shaping-up-with-angular-js
- http://newtriks.com/2013/06/11/automating-angularjs-with-yeoman-grunt-and-bower/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( $ ) {//my scope | |
var _obj = {},//container for plugin | |
_appName = 'MYDEFAULTPLUGINNAME';//will be visible in global scope, use unique name | |
_obj[_appName] = window[_appName] = new function(){//exposing to global scope | |
var _ = {//private methods | |
defaults:{}, | |
settings:{}, | |
l:function(severity, message) { | |
var _args = Array.prototype.slice.apply(arguments); | |
console[severity](_appName + ' :: ' + _args.slice(1, 2), _args.slice(2)); |
AngularJS is somewhere in between a framework and a library, and as such it lets us benefit of both worlds:
- Doesn't require a particular layout of files at development time
- Is lightweight and small in size (79kb)
- Works great with other technologies. Add as much or as little of AngularJS to an existing page as we like, and as much or as little of other libraries as well
- Is modular - every feature can be modified or replaced to suit our unique development workflow and feature needs
- Has no global state and multiple apps can run on a single page without the use of iframes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically | |
module.exports = function(grunt) { | |
/** | |
* Saves having to declare each dependency | |
*/ | |
require( "matchdep" ).filterDev( "grunt-*" ).forEach( grunt.loadNpmTasks ); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var urlRegex = /^((?:ftp|http|https)?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i; | |
/* the following will enforce appearance of 'www' while the protocol is optional, but if appears, must be correct */ | |
urlRegex = /^((ftp|http|https)?:(\/\/)|(w{3}\.))((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i; | |
/*check url on contenteditable element*/ | |
var currentText, | |
$element = $("[contenteditable='true']"); | |
var replaceAll = function (find, replace, str) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_complete_ssh_hosts () | |
{ | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
cut -f 1 -d ' ' | \ | |
sed -e s/,.*//g | \ | |
grep -v ^# | \ | |
uniq | \ | |
grep -v "\[" ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open -a Simulator --args -71CC06B3-D28F-4414-AA44-FA9A6A3D0403 | |
#create more ids: | |
xcrun simctl list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
white-space: pre; | |
font-family: monaco, Consolas, Menlo, monospace; | |
color: white; | |
background: #282a36; | |
font-size: 12px; | |
line-height: 1.5m; | |
} | |
.property { |
OlderNewer