This document helps get your macOS development environment up and running with the latest versions of Homebrew, Apache, PHP, and MariaDB.
/* Reset some default styles and provide a clean slate */ | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
/* Apply a simple, elegant font to the entire page */ | |
body { | |
font-family: 'Arial', sans-serif; | |
} |
// Variable Declarations | |
let x;// Declares a block-scoped variable | |
const y = 10; // Declares a block-scoped. read-only constant | |
// Functions | |
function myFunction() { | |
//Function declaration | |
} | |
const myFunction = () = { | |
//Arrow unction exeression | |
} |
/*** ES6 Features ***/ | |
// Let and Const | |
let variableName = "value"; // Block-scoped, can be reassigned | |
const constantName = "value"; // Block-scoped, cannot be reassigned | |
// Arrow Functions | |
const myFunction = (param) => { | |
return param * 2; | |
} | |
// Template Literals | |
const greeting = `Hello, $(name)!` // Embedded expressions |
//*** Document Methods *** | |
document.getElementById('id'); // Returns the element with the specified id | |
document.getElementsByTagName ('tag'); | |
// Returns a live HTMLCollection of elements with the specified tag name | |
document.getElementsByClassName ('class'); | |
// Returns a live HTMLCollection of elements with the specified class name | |
document.createElement('tag'); // Creates and returns a new element of the specified type | |
document.createTextNode( 'text'); // Creates a new text node with the specified text | |
document.setAttribute('attr', 'value'); | |
// Sets the value of an attribute on the specified element |
# import statments | |
import numpy | |
import re | |
''' | |
Tokenize each the sentences, example | |
Input : "John likes to watch movies. Mary likes movies too" | |
Ouput : "John","likes","to","watch","movies","Mary","likes","movies","too" | |
''' | |
def tokenize(sentences): |
<?php | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Support\Arr; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
// ... |
Get-Command # Retrieves a list of all the commands available to PowerShell | |
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules) | |
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft* | |
Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item" | |
Get-Help # Get all help topics | |
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page) | |
Get-Help -Name Get-Command # Get help for a specific PowerShell function | |
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command |
"-------------------------------------------------------------------------- | |
" $maintainer: zachary<[email protected]> | |
" $Last change: 2007 July 27 | |
" | |
" $for MS-DOS and Win32: $VIM\_vimrc | |
" $for UNIX, Linux and BSD: $VIM\.vimrc | |
" $detail: When started "gvim" or "vim" it will | |
" already have done these settings. | |
"-------------------------------------------------------------------------- |
#!/usr/bin/env bash | |
#Build and install neovim for Debian | |
#See: https://neovim.io/ | |
#See: https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start | |
#See: https://gist.github.com/darcyparker/153124662b05c679c417 | |
#Save current dir | |
pushd . > /dev/null || exit |