Skip to content

Instantly share code, notes, and snippets.

View Bionik6's full-sized avatar

Bionik6 Bionik6

View GitHub Profile
func generateUniqueKey(keys: String...) -> String {
let newArray = keys.sort()
var cuttedStr = [String]()
for str in newArray {
let newString = NSString(string: str)
let result = newString.substringWithRange(NSRange(location: 0, length: 8))
cuttedStr.append(result)
}
return cuttedStr.joinWithSeparator("-")
}

Sketch Plugins

A list of Sketch plugins hosted at GitHub, in no particular order.

Sketch Plugins

A list of Sketch plugins hosted at GitHub, in no particular order.

var gulp = require('gulp');
var gutil = require('gulp-util');
var notify = require('gulp-notify');
var sass = require('gulp-ruby-sass');
var autoprefix = require('gulp-autoprefixer');
var minifyCSS = require('gulp-minify-css')
var coffee = require('gulp-coffee');
var exec = require('child_process').exec;
var sys = require('sys');

MacOS

Download from here:

http://d.pr/f/QE3d

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to:

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.

I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:

  • Register Roles
  • Register Users
  • Update Users

There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.

I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:

  • Register Roles
  • Register Users
  • Update Users
# Initial setup
git clone -o framework -b develop https://github.com/laravel/laravel.git project-name
cd project-name
git checkout --orphan master
git commit -m "Initial commit"
# Pulling changes
git fetch framework
git merge --squash -m "Upgrade Laravel" framework/develop
# Fix merge conflicts if any and commit
<?php
namespace {
die('Only to be used as an helper for your IDE');
}
namespace {
class App extends Illuminate\Support\Facades\App{
/**
* @var \Illuminate\Foundation\Application $root
*/