git commit --amend --no-edit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs. | |
# | |
# ~ editorconfig.org | |
# ---------------------------------------------------------------- | |
# top-most EditorConfig file | |
root = true | |
# We recommend you to keep these unchanged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias updt='sudo apt update && sudo apt -y upgrade && sudo apt autoclean && sudo apt autoremove && sudo reboot' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Start somewhere ! | |
class TelecomNetworkExtensionsTableSeeder extends Seeder { | |
public function run() | |
{ | |
$faker = Faker::create(); | |
$network_extensions = [ | |
'Airtel Uganda' => '075', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function random_color_part() { | |
return str_pad( dechex( mt_rand( 0, 255 ) ), 2, '0', STR_PAD_LEFT); | |
} | |
function random_color() { | |
return random_color_part() . random_color_part() . random_color_part(); | |
} | |
echo random_color(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "laravel/laravel", | |
"description": "The Laravel Framework.", | |
"keywords": ["framework", "laravel"], | |
"license": "MIT", | |
"type": "project", | |
"require": { | |
"laravel/framework": "4.2.*" | |
}, | |
"autoload": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$extension_name = 'mysql'; | |
if (!extension_loaded($extension_name)) { | |
echo '<pre>'. $extension_name . ' not loaded</pre>'; | |
} | |
else { | |
echo '<pre>'. $extension_name . ' is loaded</pre>'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hashing user passwords | |
* | |
* @author Ravi Tamada | |
* @source http://www.androidhive.info/2014/01/how-to-create-rest-api-for-android-app-using-php-slim-and-mysql-day-23/ | |
*/ | |
class PassHash{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* FizzBuzz java class | |
* | |
* @author David Levine | |
* @source Quora.com | |
* | |
**/ | |
public class FizzBuzz { |