This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 0x1ad2 base Gulp.js file | |
* https://twitter.com/0x1ad2 | |
*/ | |
/* | |
* Define plugins | |
*/ | |
var gulp = require('gulp'); | |
var $ = require('gulp-load-plugins')(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devDependencies": { | |
"gulp-autoprefixer": "^3.0.1", | |
"gulp-concat": "^2.6.0", | |
"gulp-cssbeautify": "^0.1.3", | |
"gulp-csslint": "^0.2.0", | |
"gulp-jsbeautifier": "^1.0.1", | |
"gulp-jshint": "^1.11.2", | |
"gulp-less": "^3.0.3", | |
"gulp-minify-css": "^1.2.1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
"AF" => "Afghanistan", | |
"AX" => "Γ land", | |
"AL" => "AlbaniΓ«", | |
"DZ" => "Algerije", | |
"VI" => "Amerikaanse Maagdeneilanden", | |
"AS" => "Amerikaans-Samoa", | |
"AD" => "Andorra", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
"abk" => "Abchazisch", | |
"ada" => "Adangme", | |
"ady" => "Adygees", | |
"orm" => "Afaan Oromo", | |
"aar" => "Afar", | |
"afh" => "Afrihili", | |
"afr" => "Afrikaans", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +0x1ad2 is my blockchain ID. https://onename.com/0x1ad2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get created at attribute and mutate to Dutch format and Dutch timezone | |
*/ | |
public function getCreatedAtAttribute($date) | |
{ | |
return \Carbon::createFromFormat('Y-m-d H:i:s', $date)->copy()->tz('Europe/Amsterdam')->format('d-m-Y H:i:s'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Injectable} from '@angular/core'; | |
// Declare TabsService as a provider in app.module.ts | |
// Inject TabsService in your class: constructor(public tabs: TabsService){} | |
// Use the this.tabs.hide() or this.tabs.show() methods wherever you want | |
@Injectable() | |
export class TabsService { | |
constructor() {} | |
public hide() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Headers, Http, Response} from "@angular/http"; | |
export class GenericClass { | |
constructor(public http: Http) {} | |
public MyHttpPostMethod() { | |
// create a new promise and resolve it if possible | |
return new Promise((resolve) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env node | |
// will tell shell enviroment which program it needs execute this, in our case it's node | |
// always run your code in strict mode | |
"use strict"; | |
console.log(`My first Node CLI app π`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// make a list of frequently used binaries | |
const frequentlyUsedBinaries = [ | |
"iterm2", | |
"visual-studio-code", | |
"google-chrome", | |
"zsh", | |
"whatsapp", | |
"spectacle", | |
"spotify", | |
"slack", |
OlderNewer