Skip to content

Instantly share code, notes, and snippets.

View kebunit's full-sized avatar
🏠
Working from home

KEBUN IT kebunit

🏠
Working from home
View GitHub Profile
@kebunit
kebunit / AES.c
Created November 5, 2018 04:00 — forked from bricef/AES.c
A simple example of using AES encryption in Java and C.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* MCrypt API available online:
* http://linux.die.net/man/3/mcrypt
*/
#include <mcrypt.h>
@kebunit
kebunit / Artisan.php
Created July 27, 2016 08:39
Laravel Cheat Sheet
php artisan --help OR -h
php artisan --quiet OR -q
php artisan --version OR -V
php artisan --no-interaction OR -n
php artisan --ansi
php artisan --no-ansi
php artisan --env
// -v|vv|vvv Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
php artisan --verbose
@kebunit
kebunit / KaratsubaMultiplication.cpp
Created February 26, 2016 10:41
FAST C/C++ Implementation of the Karatsuba Multiplication algorithm. This is the only C++ implementation that I found online that uses straight C++ primitives to store data instead of std::vector or std::string objects. Because of this, it's pretty speedy. You can use this file in your program
//============================================================================
// Name : KaratsubaMultiplication.cpp
// Author : Evin Ugur (http://evinugur.com)
// Version : 1.0
// Copyright : Copyright 2015. You can use this code however and wherever you want no strings attached
// Description : C++ Functions to Perform Karatsbuba Multiplications
//============================================================================
#include <iostream>
#include <math.h>
@kebunit
kebunit / 0_reuse_code.js
Created February 25, 2016 07:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console