Skip to content

Instantly share code, notes, and snippets.

View azz0r's full-sized avatar
🎯
Focusing

FedSimulator azz0r

🎯
Focusing
View GitHub Profile
// https://github.com/gtramontina/lambda/blob/master/lambda.js
// Arithmetics -----------------------------------------------------------------
IDENTITY = x => x
SUCCESSOR = n => f => x => f(n(f)(x))
PREDECESSOR = n => f => x => n(g => h => h(g(f)))(_ => x)(u => u)
ADDITION = m => n => n(SUCCESSOR)(m)
SUBTRACTION = m => n => n(PREDECESSOR)(m)
MULTIPLICATION = m => n => f => m(n(f))
// 1
var myApp = angular.module('myApp',[]);
myApp.service('dataService', function($http) {
delete $http.defaults.headers.common['X-Requested-With'];
this.getData = function() {
// $http() returns a $promise that we can add handlers with .then()
return $http({
method: 'GET',
url: 'https://www.example.com/api/v1/page',
$screen-sm-min: 768px;
$screen-xs-max: ($screen-sm-min - 1);
$screen-md-min: 992px;
$screen-sm-max: ($screen-md-min - 1);
$screen-lg-min: 1200px;
$screen-md-max: ($screen-lg-min - 1);
@mixin breakpoint($class) {
$screen-sm-min: 768px;
$screen-xs-max: ($screen-sm-min - 1);
$screen-md-min: 992px;
$screen-sm-max: ($screen-md-min - 1);
$screen-lg-min: 1200px;
$screen-md-max: ($screen-lg-min - 1);
body {