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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>OpenStreetMap & OpenLayers - Marker Example</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="stylesheet" href="https://openlayers.org/en/v4.6.5/css/ol.css" type="text/css"> | |
<script src="https://openlayers.org/en/v4.6.5/build/ol.js" type="text/javascript"></script> | |
<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
using System; | |
using System.IO; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace HttpClientProgress { | |
public static class HttpClientProgressExtensions { | |
public static async Task DownloadDataAsync (this HttpClient client, string requestUrl, Stream destination, IProgress<float> progress = null, CancellationToken cancellationToken = default (CancellationToken)) | |
{ |
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
""" | |
Convert LocationHistory.json from Google takeout of location history (latitude) | |
to a usable KML file for viewing in Google Earth. | |
Usage: | |
python json_history_to_kml.py LocationHistory.json |
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
#requires -version 2.0 | |
function Publish-LyncContactInformation { | |
<# | |
.Synopsis | |
Publish-LyncContactInformation is a PowerShell function to configure a set of settings in the Microsoft Lync client. | |
.DESCRIPTION | |
The purpose of Publish-LyncContactInformation is to demonstrate how PowerShell can be used to interact with the Lync SDK. | |
Tested with Lync 2013 only. |
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
wget https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
bunzip2 phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
tar xf phantomjs-1.9.1-linux-x86_64.tar | |
mv phantomjs-1.9.1-linux-x86_64/ /opt/ | |
ln -s /opt/phantomjs-1.9.1-linux-x86_64/ /opt/phantomjs | |
ln -s /opt/phantomjs/bin/phantomjs /usr/local/bin/ | |
#check what you've just done | |
which phantomjs | |
phantomjs --version |
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/bash | |
###################################################################### | |
# Raspberry Pi | |
# | |
# Gross Script by Dweeber (Kevin Reed) <[email protected]> | |
# V1.0 2012-09-19 | |
# | |
# Use the vcgencmd to obtain the Temp of the SOC | |
# then calculates the F value using bc. | |
# |
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
function doHash(str, seed) { | |
var m = 0x5bd1e995; | |
var r = 24; | |
var h = seed ^ str.length; | |
var length = str.length; | |
var currentIndex = 0; | |
while (length >= 4) { | |
var k = UInt32(str, currentIndex); | |