layout | title | date | categories |
---|---|---|---|
post |
Introduction to Gulp Boilerplate! |
2016-02-24 10:27:02 +1100 |
gulp jade stylus preprocessor workflow |
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
image: node:lts | |
before_script: | |
- eval $(ssh-agent -s) | |
- ssh-add <(echo "$VPS_KEY") | |
- mkdir -p ~/.ssh | |
cache: | |
paths: | |
- node_modules/ |
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
// Calculates the log base 'base' of 'value' e.g. logBase(2, 4) is log_2 (4) = 2 | |
function logBase(base, value) { | |
return log(value)/log(base); | |
} | |
/* | |
* Calculates the points earned after winning a match based on the following: | |
* Min and max points: The minimum and maximum amount of points to be applied | |
* Min and max delta: At what rank difference the min or max points should be applied (e.g. -500 and 500 ranking point difference) | |
* Delta: How much ranking point difference there is between the two players (winningPlayer - losingPlayer) |
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
declare module ElectronDL { | |
interface ElectronDLOptions { | |
/** | |
* Show a 'Save As...' dialog instead of downloading immediately. Note: Only use this option | |
* when strictly necessary. Downloading directly without a prompt is a much better user experience. | |
* | |
* Defaults to false | |
*/ | |
saveAs: boolean; |
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
gcc main.c utils.c -o runMe |
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
import {Student} from "./Student"; | |
function greeter(student: Student) { | |
return student.firstName + " " + student.lastName; | |
} | |
let user = new Student("Jane", "Doe"); | |
document.body.innerHTML = greeter(user); |
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
echo -e "\x1B[01;95mWhere was your Laravel project installed? (Use a full path such as /home/ubuntu/projects/blog/)\x1B[0m" | |
read PATH | |
cd $PATH | |
echo -e "\x1B[01;95mHas Laravel IDE Helper been installed? (Y/n)\x1B[0m" | |
read INSTALLED | |
if [ $INSTALLED = "n" ] || [ $INSTALLED = "N" ]; then | |
echo -e "\x1B[01;93mInstalling...\x1B[0m" | |
composer require barryvdh/laravel-ide-helper | |
echo -e "\x1B[01;93mAdd this to providers array in app.php in config\x1B[0m" | |
echo -e "\x1B[01;93mBarryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class\x1B[0m" |
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
# CREATED BY BEN O'SULLIVAN / BIGBENO37 (GITHUB.COM/BIGBENO37) | |
# LICENSED UNDER CREATIVE COMMONS 'Attribution 4.0 International' LICENSE | |
# https://creativecommons.org/licenses/by/4.0/ | |
# FEEL FREE TO USE AND ADAPT THIS SCRIPT IN COMMERCIAL AND NON COMMERICAL PRODUCTS | |
# AS LONG AS PROPER ACCREDITATION IS GIVEN | |
# VARIABLES | |
echo -e "\x1B[01;95mWhat would you like to name your Laravel project?\x1B[0m" | |
read LARAVEL_PROJECT_NAME |
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
vagrant init unbuntu/xenial64 | |
cd #location/of/.box | |
vagrant box add ubuntu/xenial64 #nameof.box |
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
# =============== # | |
# Unity generated # | |
# =============== # | |
Temp/ | |
Obj/ | |
UnityGenerated/ | |
Library/ | |
Assets/AssetStoreTools* | |
Test_Data/ |
NewerOlder