brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
// Set the default timezone using a GMT offset | |
$offset = -5; // GMT offset | |
$is_DST = FALSE; // observing daylight savings? | |
$timezone_name = timezone_name_from_abbr('', $offset * 3600, $is_DST); // e.g. "America/New_York" | |
date_default_timezone_set($timezone_name); |
doctype 5 | |
head | |
title | |
| MySite.com :: | |
block title | |
| Awesome Stuff For Awesome People | |
body |
// This particular code works with html that looks like this: | |
<div class="upload_container" id="photo_number_1"> | |
<div><input name="upload" class="photo_upload_field" type="file" /></div> | |
<div><input type="button" class="upload_photo_submit" value="Upload Photo"></div> | |
<p class="center loading hidden"><img src="/assets/loading.gif"></p> | |
<script> | |
// yes, I know, don't actually put this in a script tag here. It's for illustration purposes only | |
$('.upload_photo_submit')[0]).click(function(event){ajaxFileUpload(event);}); | |
</script> |
server { | |
# Listen on port 81 | |
listen 81; | |
# Server name being used (exact name, wildcards or regular expression) | |
# server_name phpmyadmin.my; | |
root /usr/share/phpmyadmin; |
/** | |
* Custom Scroll listener for RecyclerView. | |
* Based on implementation https://gist.github.com/ssinss/e06f12ef66c51252563e | |
*/ | |
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
public static String TAG = "EndlessScrollListener"; | |
private int previousTotal = 0; // The total number of items in the dataset after the last load | |
private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. |
If you have this error: Unknown SSL error -12218 mapped to net::ERR_SSL_PROTOCOL_ERROR | |
and your upwork client does not run you need: | |
sudo apt-get install libnss3=2:3.15.4-1ubuntu7 libnss3-nssdb=2:3.15.4-1ubuntu7 | |
sudo apt-mark hold libnss3 libnss3-nssdb | |
Solution provided by Ilya E from upwork. |