Contents:
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
" On Linux/OSX this is ~/.vimrc | |
" On windows this is ~/_vimrc | |
" Don't drop garbage files everywhere. | |
" Note that this disables vim backup files, which I'm cool with, but | |
" maybe you're not. | |
:set nobackup | |
" Prepend (^=) the windows temp dir as the place to keep swap files. | |
" The // tells vim to use the absolute path to avoid collisions. |
The apt-get version of node is incredibly old, and installing a new copy is a bit of a runaround.
So here's how you can use NVM to quickly get a fresh copy of Node on your new Bash on Windows install
$ touch ~/.bashrc
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
// restart bash
$ nvm install --lts
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
#!/bin/sh | |
# this script requires root | |
# be sure to run the following before running this: | |
# $ sudo su | |
# since there's an issue piping the curl response to bash | |
# just download the install script | |
curl -sL https://deb.nodesource.com/setup_6.x > install_node.sh |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
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
// Anonymous "self-invoking" function | |
alert("Thank you for using this script created by Louis Hong (/u/loolo78)\n\nThe download will now begin."); | |
(function() { | |
// Load the script | |
var script = document.createElement("SCRIPT"); | |
script.src = 'https://code.jquery.com/jquery-latest.min.js'; | |
script.type = 'text/javascript'; | |
document.getElementsByTagName("head")[0].appendChild(script); |
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 | |
/* | |
* Tricky Loops v5 Thanks to Richard | |
* CF1.0 - Added feature to filter by custom fields. Base Ultimatum Version used is 2.8.7 PRO - Manik Magar | |
*/ | |
class UltimatumCustomContentWithCFFilter extends WP_Widget { | |
function UltimatumCustomContentWithCFFilter() { |
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
'use strict'; | |
/*****************NATIVE forEACH*********************/ | |
Array.prototype.myEach = function(callback) { | |
for (var i = 0; i < this.length; i++) | |
callback(this[i], i, this); | |
}; | |
//tests |
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
// Enqueue Zebra ToolTips | |
add_action( 'wp_enqueue_scripts', 'enqueue_zebra_script' ); | |
function enqueue_zebra_script() { | |
wp_enqueue_script( 'zebra-tooltips', get_stylesheet_directory_uri() . '/js/zebra_tooltips.js', array( 'jquery' ), '', true ); | |
wp_enqueue_script( 'zebra-tooltips-init', get_stylesheet_directory_uri() . '/js/zebra_tooltips_init.js', array( 'zebra-tooltips' ), '1.0.0', true ); | |
wp_enqueue_style( 'zebra-styles', get_bloginfo('stylesheet_directory').'/css/zebra_tooltips.css', array(), '1.0.0' ); | |
} |
Install Package Control for easy package management.
- Open the console with
Ctrl+`
- Paste in the following:
NewerOlder