Skip to content

Instantly share code, notes, and snippets.

View cergey-obr's full-sized avatar

Sergey Obraztsov cergey-obr

View GitHub Profile
@cergey-obr
cergey-obr / productsController.js
Last active August 29, 2015 14:27 — forked from jdnichollsc/app.js
SQLite plugin with ngCordova in Ionic Framework => Using service pattern
controllers.controller('ProductsController', ['$scope', '$ionicPlatform', 'Products' function ($scope, $ionicPlatform, Products) {
$scope.products = [];
$scope.product = {
IdProduct: 1,
Name: 'Pizza',
Icon: 'ion-pizza',
Color: '#F056C2'
};
@cergey-obr
cergey-obr / cli-loader.php
Created October 30, 2017 13:19
Snippet to emulate a little loading char in terminal
<?php
$chars = ["|","/","-","\\"];
$milisecondsToWait = 100;
for($i = 0;$i < count($chars);$i++)
{
echo "\r";
echo $chars[$i];
mage: node:6.9.0
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- node --version
- npm --version
- npm install -g gulp ts-node typescript typings
- npm install --unsafe-perm