Skip to content

Instantly share code, notes, and snippets.

View n1crack's full-sized avatar
:octocat:
Rocking

Yusuf Özdemir n1crack

:octocat:
Rocking
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 / Like.vue
Created May 10, 2017 04:24
Like button
<template>
<button type="submit" class="btn btn-secondary btn-sm like-button"
rel="tooltip" title="Beğen"
v-on:click="favorite"
v-bind:disabled="submitted">
<i class="fa" v-bind:class="iconFavori"></i> {{ total_likes }}
</button>
</template>
<script>
@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 / select2.scss
Last active August 30, 2023 11:11
scss for select2 #bulma
.select2-container {
.select2-selection--single {
transition: border-color $speed;
font-family: $family-sans-serif;
height: 2.285em;
font-size: 1rem;
outline: none !important;
display: inline-flex;
align-items: center;
@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 / execution_time.php
Last active November 17, 2018 16:56
code execution time #php
<?php
$time_start = microtime(true);
for($i=0; $i<1000; $i++){
// code here
}
$time_end = microtime(true);
@n1crack
n1crack / add-column.html
Last active December 31, 2021 13:52
Datatables php library
<table border="0" class="display" id="example" width="100%">
<thead>
<tr>
<th width="8%">Id</th>
<th width="50%">Name</th>
<th width="22%">Unit Price</th>
<th width="20%">Action</th>
</tr>
</thead>
<tbody>
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
// Codeigniter 3 usage :
// Set config/config.app:
// $config['composer_autoload'] = 'vendor/autoload.php';
use Ozdemir\Datatables\Datatables;
use Ozdemir\Datatables\DB\CodeigniterAdapter;
class Welcome extends CI_Controller {
public function index()
{
@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;