Skip to content

Instantly share code, notes, and snippets.

View andevsoftware's full-sized avatar

Andev Software andevsoftware

View GitHub Profile
@andevsoftware
andevsoftware / phalcon-rest-copy-default-template.sh
Created February 28, 2016 18:57
Phalcon REST Boilerplate - Copy default config
cp app/configs/default.template.php app/configs/default.php
@andevsoftware
andevsoftware / composer-install.sh
Created February 28, 2016 18:56
Composer install
composer install
@andevsoftware
andevsoftware / cd-my-project.sh
Created February 28, 2016 18:56
Change directory my project
cd my-project
@andevsoftware
andevsoftware / clone-phalcon-rest-boilerplate.sh
Created February 28, 2016 18:55
Clone Phalcon REST Boilerplate
git clone https://github.com/redound/phalcon-rest-boilerplate my-project
@andevsoftware
andevsoftware / tscore.data.collection.clone.ts
Last active February 27, 2016 17:53
TSCore/Data/Collection - clone method
var collection = new TSCore.Data.Collection<number>([1, 2, 3, 4]);
var copy = collection.clone();
collection.remove(2);
copy.toArray();
// [1, 2, 3, 4]
@andevsoftware
andevsoftware / tscore.data.collection.contains.ts
Created February 27, 2016 17:49
TSCore/Data/Collection - contains method
var item = new Item("Couch");
var collection = new TSCore.Data.Collection([item]);
collection.contains(item);
// true
@andevsoftware
andevsoftware / tscore.data.collection.isEmpty.ts
Last active February 27, 2016 17:47
TSCore/Data/Collection - isEmpty method
var collection = new TSCore.Data.Collection([]);
collection.isEmpty();
// true
@andevsoftware
andevsoftware / tscore.data.collection.find.ts
Created February 27, 2016 17:44
TSCore/Data/Collection - find method
var collection = new TSCore.Data.Collection<number>([1, 2, 3, 4]).find(value => {
return value > 2;
});
// 3
@andevsoftware
andevsoftware / tscore.data.collection.filter.ts
Created February 27, 2016 17:42
TSCore/Data/Collection - filter method
var collection = new TSCore.Data.Collection<number>([1, 2, 3, 4]);
var filtered = collection.filter(value => {
return value > 2;
});
filtered.toArray();
// [3, 4]
@andevsoftware
andevsoftware / tscore.data.collection.reject.ts
Last active February 27, 2016 17:39
TSCore/Data/Collection - reject method
var collection = new TSCore.Data.Collection<number>([1, 2, 3, 4]);
var filtered = collection.reject(value => {
return value > 2;
});
filtered.toArray();
// [1, 2]