Skip to content

Instantly share code, notes, and snippets.

@lukaszewczak
lukaszewczak / create_repo.bash
Created September 19, 2014 21:13
Create repo
mkdir angularjs-styleguide
cd angularjs-styleguide
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin [email protected]:nazwa-projektu.git
git push -u origin master
@lukaszewczak
lukaszewczak / global_set.bash
Last active August 29, 2015 14:06
Git Global Settings
git config --global user.name "Łukasz Szewczak"
git config --global user.email "[email protected]"
@lukaszewczak
lukaszewczak / start_weinre.sh
Last active September 19, 2016 21:06
start weinre
weinre --httpPort 8081 --boundHost -all-
@lukaszewczak
lukaszewczak / weinre help
Last active August 29, 2015 14:06
options for weinre
D:\Projekty>weinre ?
usage: weinre [options]
version: 2.0.0-pre-HZO3BMNG
options:
--httpPort port to run the http server on default: 8080
--boundHost ip address to bind the server to default: localhost
--verbose print more diagnostics default: false
--debug print even more diagnostics default: false
--readTimeout seconds to wait for a client message default: 5
npm -g install weinre
function AnotherService () {
var AnotherService = {};
AnotherService.someValue = '';
AnotherService.someMethod = function () {
};
return AnotherService;
}
function SomeService () {
this.someMethod = function () {
};
}
angular
(function () {
'use strict';
angular
.module('import')
.service('DataService', DataService);
DataService.$inject = ['$http'];
function factory(name, factoryFn) { return provider(name, { $get: factoryFn }); }
function service(name, constructor) {
return factory(name, ['$injector', function($injector) {
return $injector.instantiate(constructor);
}]);
}
function invoke(fn, self, locals){
var args = [],
$inject = annotate(fn),
length, i,
key;
....
return fn.apply(self, args);