Skip to content

Instantly share code, notes, and snippets.

Daouda Traore quieterkali

Block or report user

Report or block quieterkali

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@quieterkali
quieterkali / 0 - data.md
Created Nov 28, 2018 — forked from sundarj/0 - data.md
data: towards enlightenment
View 0 - data.md

data

towards enlightenment

‘It is a capital mistake to theorize before one has data. Insensibly one begins to twist facts to suit theories, instead of theories to suit facts.’

@quieterkali
quieterkali / docker error
Last active Jan 6, 2018
error do nodemon
View docker error
sudo docker run -p 8080:3000 -v $(pwd):/home/security/Documents/projects/docker-source-monitor -w "/home/security/Documents/projects/docker-source-monitor" node npm start
> dgree@1.0.0 start /home/security/Documents/projects/docker-source-monitor
> npm run watch
> dgree@1.0.0 watch /home/security/Documents/projects/docker-source-monitor
> nodemon --watch ./src -e ts,ejs --exec "npm run compile && npm run views && npm run build"
sh: 1: nodemon: not found
@quieterkali
quieterkali / curry
Created Aug 6, 2017
custom curry funtion
View curry
const curry = (fn) => {
if(typeof fn !== 'function') {
throw Error('No function provided');
}
return function curriedFn(...args) {
if(args.length < fn.length) {
return function() {
return curriedFn.apply(null, args.concat([].slice.call(arguments)));
};
@quieterkali
quieterkali / augmenting
Created Jul 28, 2017
reading the good part
View augmenting
Function.prototype.method = function (name, func) {
this.prototype[name] = func;
return this;
};
View gist:4f51c8908d436a1de51e009f396d020b
$ = jquery = require('jquery');
((win) => {
'use strict';
var React = require('react');
var ReactDom = require('react-dom');
var Home = require('./component/homePage');
View Map, filter, reduce
module.exports = CodeMachine = function (coffee) {
if (coffee instanceof Coffee) {
throw new TypeError('CodeMachine needs coffee to work')
}
var linesOfCode = []
for (var i = 0, end = Math.random() * 1000; i < end; i++) {
var line = []
@quieterkali
quieterkali / 0.md
Created Oct 12, 2016 — forked from maxogden/0.md
JS hoisting by example
View 0.md

JavaScript function hoisting by example

Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.

To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js

Notes on hoisting

(I may be using incorrect terms below, please forgive me)

View gist:8e3d17b4c844b3da3a695ceca2ee8043
controllers.controller('ListaImoveisCtrl', function($rootScope, $scope, $ionicPlatform, $location, $timeout, $ionicLoading, $cordovaSQLite, $stateParams, imoveisService) {
$scope.$on('$ionicView.enter', function () {
imoveisService.getImoveis(imoveisService.formData).success(function (imoveis) {
if (!imoveis || !imoveis.length) {
throw new Error('Algo deu errado ao tentar carregar informações de imóveis.');
}
$scope.imoveis = imoveis
if ($stateParams.idAtendimento == undefined) {
You can’t perform that action at this time.