Set up project:
mkdir project
cd project
npm init -y| <?php | |
| $loop = new WP_Query( array( | |
| 'post_type' => 'Property', | |
| 'posts_per_page' => -1 | |
| ) | |
| ); | |
| ?> | |
| <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> |
| ```js | |
| // Place your settings in this file to overwrite the default settings | |
| { | |
| "window.zoomLevel": 0, | |
| "editor.fontSize": 14, | |
| "editor.tabSize": 2, | |
| "editor.tabCompletion": true, | |
| "editor.snippetSuggestions": "top", | |
| "editor.renderWhitespace": "boundary", | |
| "sync.gist": "cd6aaed4a15ba1a0eaea3f3a9bf7d1f1", |
| /* | |
| Slow way | |
| */ | |
| var utils = { | |
| fibonacci: function(n) { | |
| if (n === 0) { | |
| return 0; | |
| } | |
| if (n === 1) { |
| git fetch origin pull/[PULL_ID]/head:[BRANCHNAME] | |
| git checkout BRANCHNAME | |
| Example | |
| git fetch origin pull/40/head:feat/definition-module-refactoring |
| [{ | |
| "keys": ["super+alt+l"], | |
| "command": "htmlprettify" | |
| }, { | |
| "keys": ["super+backspace"], | |
| "command": "run_macro_file", | |
| "args": { | |
| "file": "res://Packages/Default/Delete Line.sublime-macro" | |
| } | |
| }, |
git checkout -b my-new-featuregit commit -m 'Add some feature'git push origin my-new-featureRemember that we have a pre-push hook with steps that analyzes and prevents mistakes.
After your pull request is merged, you can safely delete your branch.
| font-url(file) | |
| return "../fonts/" + file | |
| webfont(family, file, hack-chrome-windows = false, weight = "normal") | |
| @font-face | |
| font-family family | |
| src url(font-url(file + ".eot")) | |
| src url(font-url(file + ".eot?#iefix")) format("embedded-opentype"), url(font-url(file + ".woff")) format("woff"), url(font-url(file + ".ttf")) format("truetype"), url(font-url(file + ".svg#" + family)) format("svg") | |
| font-weight weight | |
| font-style normal |
| let someArray = [[1, 2, [3]], 4]; | |
| function flatArray(arrayToFlat) { | |
| let arrayFlattened = []; | |
| if (!Array.isArray(arrayToFlat)) { | |
| return 'This is not an object of type Array'; | |
| } | |
| function flat(arrayToFlat) { | |
| arrayToFlat.map((arrayItem, index, arr) => { | |
| if (Array.isArray(arrayItem)) { |
| #!/bin/sh | |
| # | |
| # Brew packages that I use alot. | |
| # | |
| brew install wget | |
| brew install node | |
| brew install imagemagick | |
| # | |
| # Some cask packages that I like. | |
| # |