Skip to content

Instantly share code, notes, and snippets.

@adrianlee
Created February 10, 2013 06:15
Show Gist options
  • Save adrianlee/4748592 to your computer and use it in GitHub Desktop.
Save adrianlee/4748592 to your computer and use it in GitHub Desktop.
Searching 476 files for "angular"
/Users/adrianlee/Dropbox/Shared/project_course_rating_system/temp_course_rating/public/app.js:
1 var ratemycourse = {};
2: var App = angular.module('ratemycourse', ['ngResource']);
3
4 App.config(['$routeProvider', function($routeProvider) {
/Users/adrianlee/Dropbox/Shared/project_course_rating_system/temp_course_rating/public/libs/angular-resource.min.js:
1 /*
2: AngularJS v1.1.2
3: (c) 2010-2012 Google, Inc. http://angularjs.org
4 License: MIT
5 */
.
8 arguments.length+" arguments.";}var p=this instanceof g?this:b.isArray?[]:new g(i),t={};h(b,function(b,a){a!="params"&&a!="isArray"&&(t[a]=v(b))});t.data=i;t.url=l.url(q({},f(i,b.params||{}),j));z(t).then(function(a){var c=a.data;if(c)b.isArray?(p.length=0,h(c,function(a){p.push(new g(a))})):v(c,p);(m||r)(p,a.headers)},s);return p};g.prototype["$"+a]=function(b,d,h){var n=f(this),j=r,i;switch(arguments.length){case 3:n=b;j=d;i=h;break;case 2:case 1:o(b)?(j=b,i=d):(n=b,j=d||r);case 0:break;default:throw"Expected between 1-3 arguments [params, success, error], got "+
9 arguments.length+" arguments.";}g[a].call(this,n,e?this:y,j,i)}});g.bind=function(d){return x(a,q({},e,d),b)};return g}var B={get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}},r=d.noop,h=d.forEach,q=d.extend,v=d.copy,o=d.isFunction;w.prototype={url:function(a){var e=this,b=this.template,f,g,a=a||{};h(this.urlParams,function(h,c){f=a.hasOwnProperty(c)?a[c]:e.defaults[c];d.isDefined(f)&&f!==null?(g=u(f,!0).replace(/%26/gi,"&").replace(/%3D/gi,
10: "=").replace(/%2B/gi,"+"),b=b.replace(RegExp(":"+c+"(\\W)","g"),g+"$1")):b=b.replace(RegExp("(/?):"+c+"(\\W)","g"),function(b,a,c){return c.charAt(0)=="/"?c:a+c})});var b=b.replace(/\/?#$/,""),l=[];h(a,function(b,a){e.urlParams[a]||l.push(u(a)+"="+u(b))});l.sort();b=b.replace(/\/*$/,"");return b+(l.length?"?"+l.join("&"):"")}};return x}])})(window,window.angular);
/Users/adrianlee/Dropbox/Shared/project_course_rating_system/temp_course_rating/public/libs/angular.min.js:
1 /*
2: AngularJS v1.1.2
3: (c) 2010-2012 Google, Inc. http://angularjs.org
4 License: MIT
5 */
.
14 "$").replace(/%2C/gi,",").replace(a?null:/%20/g,"+")}function ic(b,a){function c(a){a&&d.push(a)}var d=[b],e,g,i=["ng:app","ng-app","x-ng-app","data-ng-app"],f=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;m(i,function(a){i[a]=!0;c(W.getElementById(a));a=a.replace(":","\\:");b.querySelectorAll&&(m(b.querySelectorAll("."+a),c),m(b.querySelectorAll("."+a+"\\:"),c),m(b.querySelectorAll("["+a+"]"),c))});m(d,function(a){if(!e){var b=f.exec(" "+a.className+" ");b?(e=a,g=(b[2]||"").replace(/\s+/g,",")):m(a.attributes,
15 function(b){if(!e&&i[b.name])e=a,g=b.value})}});e&&a(e,g?[g]:[])}function rb(b,a){b=x(b);a=a||[];a.unshift(["$provide",function(a){a.value("$rootElement",b)}]);a.unshift("ng");var c=sb(a);c.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,i){a.$apply(function(){b.data("$injector",i);c(b)(a)})}]);return c}function $a(b,a){a=a||"_";return b.replace(jc,function(b,d){return(d?a:"")+b.toLowerCase()})}function ab(b,a,c){if(!b)throw new y("Argument '"+(a||"?")+"' is "+(c||"required"));
16: return b}function ra(b,a,c){c&&I(b)&&(b=b[b.length-1]);ab(K(b),a,"not a function, got "+(b&&typeof b=="object"?b.constructor.name||"Object":typeof b));return b}function kc(b){function a(a,b,e){return a[b]||(a[b]=e())}return a(a(b,"angular",Object),"module",function(){var b={};return function(d,e,g){e&&b.hasOwnProperty(d)&&(b[d]=null);return a(b,d,function(){function a(c,d,e){return function(){b[e||"push"]([c,d,arguments]);return k}}if(!e)throw y("No module: "+d);var b=[],c=[],j=a("$injector","invoke"),
17 k={_invokeQueue:b,_runBlocks:c,requires:e,name:d,provider:a("$provide","provider"),factory:a("$provide","factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),config:j,run:function(a){c.push(a);return this}};g&&j(g);return k})}})}function tb(b){return b.replace(lc,function(a,b,d,e){return e?d.toUpperCase():d}).replace(mc,
18 "Moz$1")}function bb(b,a){function c(){var e;for(var b=[this],c=a,i,f,h,j,k,l;b.length;){i=b.shift();f=0;for(h=i.length;f<h;f++){j=x(i[f]);c?j.triggerHandler("$destroy"):c=!c;k=0;for(e=(l=j.children()).length,j=e;k<j;k++)b.push(ia(l[k]))}}return d.apply(this,arguments)}var d=ia.fn[b],d=d.$original||d;c.$original=d;ia.fn[b]=c}function N(b){if(b instanceof N)return b;if(!(this instanceof N)){if(G(b)&&b.charAt(0)!="<")throw y("selectors not implemented");return new N(b)}if(G(b)){var a=W.createElement("div");
..
57 "#"+a+b.substr(c.length)}}function Ma(b){return function(){return this[b]}}function Jb(b,a){return function(c){if(t(c))return this[b];this[b]=a(c);this.$$compose();return this}}function Gc(){var b="",a=!1;this.hashPrefix=function(a){return s(a)?(b=a,this):b};this.html5Mode=function(b){return s(b)?(a=b,this):a};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(c,d,e,g){function i(a){c.$broadcast("$locationChangeSuccess",f.absUrl(),a)}var f,h,j,k=d.url(),l=va(k);a?(h=d.baseHref()||
58 "/",j=h.substr(0,h.lastIndexOf("/")),l=ka(l.protocol,l.host,l.port)+j+"/",f=e.history?new ib(Dc(k,h,b),j,l):new Ib(Ec(k,h,b),b,l,h.substr(j.length+1))):(l=ka(l.protocol,l.host,l.port)+(l.path||"")+(l.search?"?"+l.search:"")+"#"+b+"/",f=new La(k,b,l));g.bind("click",function(a){if(!a.ctrlKey&&!(a.metaKey||a.which==2)){for(var b=x(a.target);F(b[0].nodeName)!=="a";)if(b[0]===g[0]||!(b=b.parent())[0])return;var d=b.prop("href"),e=f.$$rewriteAppUrl(d);d&&!b.attr("target")&&e&&(f.$$parse(e),c.$apply(),
59: a.preventDefault(),S.angular["ff-684208-preventDefault"]=!0)}});f.absUrl()!=k&&d.url(f.absUrl(),!0);d.onUrlChange(function(a){f.absUrl()!=a&&(c.$evalAsync(function(){var b=f.absUrl();f.$$parse(a);i(b)}),c.$$phase||c.$digest())});var n=0;c.$watch(function(){var a=d.url(),b=f.$$replace;if(!n||a!=f.absUrl())n++,c.$evalAsync(function(){c.$broadcast("$locationChangeStart",f.absUrl(),a).defaultPrevented?f.$$parse(a):(d.url(f.absUrl(),b),i(a))});f.$$replace=!1;return n});return f}]}function Hc(){var b=!0,
60 a=this;this.debugEnabled=function(a){return s(a)?(b=a,this):b};this.$get=["$window",function(c){function d(a){a instanceof y&&(a.stack?a=a.message&&a.stack.indexOf(a.message)===-1?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=c.console||{},e=b[a]||b.log||E;return e.apply?function(){var a=[];m(arguments,function(b){a.push(d(b))});return e.apply(b,a)}:function(a,b){e(a,b)}}return{log:e("log"),warn:e("warn"),info:e("info"),
61 error:e("error"),debug:function(){var c=e("debug");return function(){b&&c.apply(a,arguments)}}()}}]}function Ic(b,a){function c(a){return a.indexOf(r)!=-1}function d(a){a=a||1;return o+a<b.length?b.charAt(o+a):!1}function e(a){return"0"<=a&&a<="9"}function g(a){return a==" "||a=="\r"||a=="\t"||a=="\n"||a=="\u000b"||a=="\u00a0"}function i(a){return"a"<=a&&a<="z"||"A"<=a&&a<="Z"||"_"==a||a=="$"}function f(a){return a=="-"||a=="+"||e(a)}function h(a,c,d){d=d||o;throw y("Lexer Error: "+a+" at column"+
..
94 k.error=function(b){k.then(null,function(c){b(c.data,c.status,c.headers,a)});return k};return k}function n(b,c,d){function e(a,b,c){m&&(200<=a&&a<300?m.put(p,[a,b,Nb(c)]):m.remove(p));f(b,a,c);h.$apply()}function f(a,c,d){c=Math.max(c,0);(200<=c&&c<300?k.resolve:k.reject)({data:a,status:c,headers:Ob(d),config:b})}function i(){var a=Ba(l.pendingRequests,b);a!==-1&&l.pendingRequests.splice(a,1)}var k=j.defer(),n=k.promise,m,w,p=q(b.url,b.params);l.pendingRequests.push(b);n.then(i,i);b.cache&&b.method==
95 "GET"&&(m=M(b.cache)?b.cache:o);if(m)if(w=m.get(p))if(w.then)return w.then(i,i),w;else I(w)?f(w[1],w[0],T(w[2])):f(w,200,{});else m.put(p,n);w||a(b.method,p,c,e,d,b.timeout,b.withCredentials,b.responseType);return n}function q(a,b){if(!b)return a;var c=[];ec(b,function(a,b){a==null||a==p||(I(a)||(a=[a]),m(a,function(a){M(a)&&(a=aa(a));c.push(encodeURIComponent(b)+"="+encodeURIComponent(a))}))});return a+(a.indexOf("?")==-1?"?":"&")+c.join("&")}var o=c("$http"),A=[];m(e,function(a){A.push(G(a)?k.get(a):
96: k.invoke(a))});l.pendingRequests=[];(function(a){m(arguments,function(a){l[a]=function(b,c){return l(z(c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){m(arguments,function(a){l[a]=function(b,c,d){return l(z(d||{},{method:a,url:b,data:c}))}})})("post","put");l.defaults=d;return l}]}function Wc(){this.$get=["$browser","$window","$document",function(b,a,c){return Xc(b,Yc,b.defer,a.angular.callbacks,c[0],a.location.protocol.replace(":",""))}]}function Xc(b,a,c,d,e,g){function i(a,
97 b){var c=e.createElement("script"),d=function(){e.body.removeChild(c);b&&b()};c.type="text/javascript";c.src=a;Z?c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&d()}:c.onload=c.onerror=d;e.body.appendChild(c)}return function(e,h,j,k,l,n,q,o){function p(a,c,d,e){c=(h.match(hb)||["",g])[1]=="file"?d?200:404:c;a(c==1223?204:c,d,e);b.$$completeOutstandingRequest(E)}b.$$incOutstandingRequestCount();h=h||b.url();if(F(e)=="jsonp"){var r="_"+(d.counter++).toString(36);d[r]=function(a){d[r].data=
98: a};i(h.replace("JSON_CALLBACK","angular.callbacks."+r),function(){d[r].data?p(k,200,d[r].data):p(k,-2);delete d[r]})}else{var v=new a;v.open(e,h,!0);m(l,function(a,b){a&&v.setRequestHeader(b,a)});var s;v.onreadystatechange=function(){v.readyState==4&&p(k,s||v.status,v.response||v.responseText,v.getAllResponseHeaders())};if(q)v.withCredentials=!0;if(o)v.responseType=o;v.send(j||"");n>0&&c(function(){s=-1;v.abort()},n)}}}function Zc(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",
99 GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"\u00a4",posSuf:"",negPre:"(\u00a4",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),
100 SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(b){return b===1?"one":"other"}}}}function $c(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(b,a,c,d){function e(e,f,h){var j=c.defer(),k=j.promise,l=s(h)&&!h,f=a.defer(function(){try{j.resolve(e())}catch(a){j.reject(a),
...
113 h+" to be a RegExp but was "+c);return j(c,a)},d.$formatters.push(e),d.$parsers.push(e));if(c.ngMinlength){var k=D(c.ngMinlength),e=function(a){return!R(a)&&a.length<k?(d.$setValidity("minlength",!1),p):(d.$setValidity("minlength",!0),a)};d.$parsers.push(e);d.$formatters.push(e)}if(c.ngMaxlength){var l=D(c.ngMaxlength),e=function(a){return!R(a)&&a.length>l?(d.$setValidity("maxlength",!1),p):(d.$setValidity("maxlength",!0),a)};d.$parsers.push(e);d.$formatters.push(e)}}function lb(b,a){b="ngClass"+
114 b;return P(function(c,d,e){function g(b,d){if(a===!0||c.$index%2===a)d&&b!==d&&i(d),f(b)}function i(a){M(a)&&!I(a)&&(a=Va(a,function(a,b){if(a)return b}));d.removeClass(I(a)?a.join(" "):a)}function f(a){M(a)&&!I(a)&&(a=Va(a,function(a,b){if(a)return b}));a&&d.addClass(I(a)?a.join(" "):a)}c.$watch(e[b],g,!0);e.$observe("class",function(){var a=c.$eval(e[b]);g(a,a)});b!=="ngClass"&&c.$watch("$index",function(d,g){var k=d%2;k!==g%2&&(k==a?f(c.$eval(e[b])):i(c.$eval(e[b])))})})}var F=function(b){return G(b)?
115: b.toLowerCase():b},la=function(b){return G(b)?b.toUpperCase():b},y=S.Error,Z=D((/msie (\d+)/.exec(F(navigator.userAgent))||[])[1]),x,ia,ha=[].slice,Ta=[].push,Ua=Object.prototype.toString,Yb=S.angular||(S.angular={}),ta,Eb,X=["0","0","0"];E.$inject=[];na.$inject=[];Eb=Z<9?function(b){b=b.nodeName?b:b[0];return b.scopeName&&b.scopeName!="HTML"?la(b.scopeName+":"+b.nodeName):b.nodeName}:function(b){return b.nodeName?b.nodeName:b[0].nodeName};var jc=/[A-Z]/g,id={full:"1.1.2",major:1,minor:1,dot:2,codeName:"tofu-animation"},
116 Fa=N.cache={},Ea=N.expando="ng-"+(new Date).getTime(),nc=1,Zb=S.document.addEventListener?function(b,a,c){b.addEventListener(a,c,!1)}:function(b,a,c){b.attachEvent("on"+a,c)},eb=S.document.removeEventListener?function(b,a,c){b.removeEventListener(a,c,!1)}:function(b,a,c){b.detachEvent("on"+a,c)},lc=/([\:\-\_]+(.))/g,mc=/^moz([A-Z])/,ua=N.prototype={ready:function(b){function a(){c||(c=!0,b())}var c=!1;this.bind("DOMContentLoaded",a);N(S).bind("load",a)},toString:function(){var b=[];m(this,function(a){b.push(""+
117 a)});return"["+b.join(", ")+"]"},eq:function(b){return b>=0?x(this[b]):x(this[this.length+b])},length:0,push:Ta,sort:[].sort,splice:[].splice},Ia={};m("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(b){Ia[F(b)]=b});var Bb={};m("input,select,option,textarea,button,form,details".split(","),function(b){Bb[la(b)]=!0});m({data:wb,inheritedData:Ha,scope:function(b){return Ha(b,"$scope")},controller:zb,injector:function(b){return Ha(b,"$injector")},removeAttr:function(b,a){b.removeAttribute(a)},
...
160 ta=kc(S);try{ta("ngLocale")}catch(c){ta("ngLocale",[]).provider("$locale",Zc)}ta("ng",["ngLocale"],["$provide",function(a){a.provider("$compile",Db).directive({a:jd,input:bc,textarea:bc,form:kd,script:Sd,select:Ud,style:Wd,option:Vd,ngBind:vd,ngBindHtmlUnsafe:xd,ngBindTemplate:wd,ngClass:yd,ngClassEven:Ad,ngClassOdd:zd,ngCsp:Dd,ngCloak:Bd,ngController:Cd,ngForm:ld,ngHide:Ld,ngInclude:Fd,ngInit:Gd,ngNonBindable:Hd,ngPluralize:Id,ngRepeat:Jd,ngShow:Kd,ngSubmit:Ed,ngStyle:Md,ngSwitch:Nd,ngSwitchWhen:Od,
161 ngSwitchDefault:Pd,ngOptions:Td,ngView:Rd,ngTransclude:Qd,ngModel:qd,ngList:sd,ngChange:rd,required:cc,ngRequired:cc,ngValue:ud}).directive(mb).directive(dc);a.provider({$anchorScroll:tc,$browser:vc,$cacheFactory:wc,$controller:zc,$document:Ac,$exceptionHandler:Bc,$filter:Qb,$interpolate:Cc,$http:Vc,$httpBackend:Wc,$location:Gc,$log:Hc,$parse:Lc,$route:Oc,$routeParams:Pc,$rootScope:Qc,$q:Mc,$sniffer:Rc,$templateCache:xc,$timeout:$c,$window:Sc})}])})(Yb);x(W).ready(function(){ic(W,rb)})})(window,document);
162: angular.element(document).find("head").append('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\\:form{display:block;}</style>');
/Users/adrianlee/Dropbox/Shared/project_course_rating_system/temp_course_rating/views/layout.hbs:
43
44 <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
45: <script type="text/javascript" src="/libs/angular.min.js"></script>
46: <script type="text/javascript" src="/libs/angular-resource.min.js"></script>
47 <script type="text/javascript" src="/app.js"></script>
48 <script type="text/javascript" src="/controller.js"></script>
15 matches across 4 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment