Skip to content

Instantly share code, notes, and snippets.

View dextermb's full-sized avatar
💭
Thinking of the next big thing

Dexter Marks-Barber dextermb

💭
Thinking of the next big thing
View GitHub Profile
const Model = require('@ninetynine/node-models')
class User extends Model {
get fillables () {
return [
'github_id',
'github_token',
'login',
'email',
'name',
find / -regex “.*\.\(pem\|p12\|pfx\|pkcs12\|crl\|crt\|der\|cert\|cer\|key\|csr\)" > ~/Desktop/log
cat ~/Desktop/log | xargs -I % echo cp % /Volume/restricted/pem
# curl -sfLS http://delete.remoteless.branches.sh | sh
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
import { NgModule } from '@angular/core';
import { ComponentsModule } from './components/components.module';
import { RoutesModule } from './components/routes.module';
import { AppComponent } from './app.component';
@NgModule({
imports: [ComponentsModule, RoutesModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
@dextermb
dextermb / .angular-cli.json
Last active April 14, 2018 18:55
Initial angular configurations
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "nine"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
.system-font {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
<?php
class Converter
{
/** @var string $file_path */
protected $file_path;
/**
* @param string $file_path
*/
@dextermb
dextermb / fonts.css
Created March 16, 2018 08:38
Gotham SSm A
@font-face{
font-family: "Gotham SSm A";
src: url(data:application/x-font-woff;base64,d09GRgABAAAAAGouABIAAAAA3TwAAQAAAABn/AAAAjIAAAarAAAAAAAAAABHREVGAABfUAAAAB4AAAAgAQwABUdQT1MAAF9wAAAILgAAHTLmkqBOR1NVQgAAZ6AAAABaAAAAgOo0LbVPUy8yAAACCAAAAE4AAABgW99XdWNtYXAAAA1oAAACZgAAA1iBBKFQY3Z0IAAAEdAAAABOAAAATgNZCk1mcGdtAAAP0AAAAQIAAAFzBlmcN2dhc3AAAF9EAAAADAAAAAwAFAAOZ2x5ZgAAE+AAAESqAACPPKFTqktoZG14AAAEeAAACO8AABOgQkiZw2hlYWQAAAGUAAAANAAAADb+/uTZaGhlYQAAAcgAAAAgAAAAJAgbBH9obXR4AAACWAAAAiAAAANg+4xAqWxvY2EAABIgAAABwAAAAcBVZXgkbWF4cAAAAegAAAAgAAAAIAMAAnxuYW1lAABYjAAABLkAAAwYXW/oGHBvc3QAAF1IAAAB+QAAAqOaab3GcHJlcAAAENQAAAD6AAABfrXGiCB42mNgZGBgYPQ5U/29eGk8v81XBnnmF0ARhrM7V8nC6P8f//OwpDM/AnI5GJhAogC/rA89eNpjYGRgYD7wX4CBgWXN/4//P7KkMwBFUMBFAKjiB6EAAQAAAN8AzgAQAFgABAABAAAAAAAKAAACAAFUAAIAAXjaY2BmymPUYWBlYGHaw9TFwMDQA6EZ7zIYMfxiQAILGZj+OzAwRMP4HmpuXkBKQVGJWeG/BcMJ5gMMH4D8+SA5JjGmGyA5BiYAzT4O+gAAeNptkktoU0EUhv9z5goqohKoFdwURBEUWqXmgY03qY9oG+MDNSJ1c2uLUbwi2ApdFFRoyUp0pYJQUYiFCqLiphtFqQYsXbix4AMUFFwpFopdGP8ZEoiYe/k4Z848mPlmZA7u
DROP PROCEDURE IF EXISTS `drop_all_tables`;
DELIMITER $$
CREATE PROCEDURE `drop_all_tables`()
BEGIN
DECLARE _done INT DEFAULT FALSE;
DECLARE _tableName VARCHAR(255);
DECLARE _cursor CURSOR FOR
SELECT table_name
FROM information_schema.TABLES
@dextermb
dextermb / Margin Loop for LESS
Last active December 2, 2017 16:22 — forked from pjschreifels/Margin Loop for LESS
#layout #less - Create top, right, bottom and left margin classes from 0px to 50px in 5px increments. Use as .mt_x, mb_x, mr_x, ml_x (top, bottom, right left margin, respectively), where x is a number from 0 to 50.
// Margin classes
// -------------------------
@from : 0;
@to : 50;
.loop(@index) when(@index =< @to) {
.m-t-@{index} {
margin-top: unit(@index, px);
}