Skip to content

Instantly share code, notes, and snippets.

View n1crack's full-sized avatar
Fueled by coffee, driven by curiosity

Yusuf Özdemir n1crack

Fueled by coffee, driven by curiosity
View GitHub Profile
@n1crack
n1crack / .bash_profile
Last active November 17, 2018 16:44 — forked from natelandau/.bash_profile
Mac OSX Bash Profile #terminal
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@n1crack
n1crack / dropdown.scss
Last active November 17, 2018 16:43 — forked from keevitaja/dropdown.scss
nav dropdown #bulma
.has-dropdown {
display: relative;
.dropdown {
display: none;
position: absolute;
background-color: $white-bis;
padding: 14px;
border: 1px solid $grey-lighter;
border-radius: $radius;
@n1crack
n1crack / osx_install.sh
Last active November 17, 2018 16:46 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask #terminal
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@n1crack
n1crack / bash-cheatsheet.sh
Last active November 17, 2018 16:44 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets #terminal
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@n1crack
n1crack / extend.js
Created February 1, 2019 09:48 — forked from cferdinandi/extend.js
A native JS extend() function.
/**
* Merge defaults with user options
* @private
* @param {Object} defaults Default settings
* @param {Object} options User options
* @returns {Object} Merged values of defaults and options
*/
var extend = function ( defaults, options ) {
var extended = {};
var prop;
@n1crack
n1crack / 1 Types.md
Created September 6, 2024 04:25 — forked from MrPunyapal/1 Types.md
Types In PHP

Atomic Types (Built-in and Scalar)

// Built-in types
$variable = null;             // null type

// Scalar types
$boolVar = true;              // bool type
$intVar = 42;                 // int type
$floatVar = 3.14;             // float type
<?php
declare(strict_types=1);
namespace App\Providers;
use App\Models\Agency;
use Carbon\CarbonImmutable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Date;
<?php
declare(strict_types=1);
namespace App\Providers;
use App\Models\Agency;
use Carbon\CarbonImmutable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Date;