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
// Recursive sum function inside an IIFE. (Not my idea!) | |
(() => { | |
main(); | |
function main() { | |
console.write(sum(10)); | |
} | |
function sum(n) { | |
if (n === 1) { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace ScratchPad | |
{ | |
public static class Program | |
{ | |
// Create a custom delegate | |
public delegate int MyCustomDelegate(int value); |
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
using System; | |
namespace ScratchPad | |
{ | |
class Program | |
{ | |
public static void Main() | |
{ | |
// A char array that will be reversed | |
// You will also notice that it showcases how to store more than one variable in the loop that is local to the scope |
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
// Recursive sum function inside an IIFE. (Not my idea!) | |
(function () { | |
main(); | |
function main() { | |
console.write(sum(10)); | |
} | |
function sum(n) { | |
if (n === 1) { |
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
// Documentation: http://bower.io/docs/config/ | |
{ | |
// Prohibit the collection of anonymous usage statistics | |
"analytics": false, | |
// Set the timeout in milliseconds (ms) between requests | |
"timeout": 120000 | |
} | |
// Note: Remove the comments when adding to the project |
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
RewriteEngine On | |
# The base URL path | |
# If your URL is www.example.com/, then use / | |
# If your URL is www.example.com/site_folder/www, then use /site_folder/www/ | |
RewriteBase / | |
# Do not enable rewriting for files or directories that exist | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f |
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
// Documentation: https://github.com/beautify-web/js-beautify | |
// Example URL: https://github.com/victorporof/Sublime-HTMLPrettify/blob/master/.jsbeautifyrc | |
// Based on Airbnb's JavaScript Style Guide, URL: https://github.com/airbnb/javascript | |
{ | |
// Collapse curly brackets | |
"brace_style": "collapse", | |
// Break chained method calls across subsequent lines | |
"break_chained_methods": true, |
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
Show hidden characters
// Documentation: jshint.com/docs | |
// Based on Airbnb's JavaScript Style Guide, URL: https://github.com/airbnb/javascript | |
{ | |
// Enforcing Options | |
// Force curly braces around blocks in loops and conditionals | |
"curly": true, | |
// Prohibit use of == and != in favour of === and !== | |
"eqeqeq": true, |
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": "Example", | |
"version": "1.0.0", | |
"description": "Example description", | |
"license": "MIT", | |
"authors": [ | |
{ | |
"name": "", | |
"email": "" | |
} |
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": "", | |
"homepage": "", | |
"description": "", | |
"main": "", | |
"keywords": [], | |
"license": "MIT", | |
"ignore": [ | |
], | |
"dependencies": {}, |