create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
<?php | |
// Populate using POST vars | |
$data = [ | |
'email' => '[email protected]', | |
'status' => 'subscribed' | |
]; | |
var_dump( syncMailchimp($data) ); |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using System.Collections; | |
#if UNITY_IOS | |
using UnityEditor.iOS.Xcode; | |
#endif | |
using System.IO; | |
// PListiOS - Edit the PList file. |
// Format seconds to hh:mm:ss. | |
function formatSeconds(seconds) | |
{ | |
var date = new Date(1970,0,1); | |
date.setSeconds(seconds); | |
return date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1"); | |
} |
// Grab GET URL variables from JS. | |
// credit: https://css-tricks.com/snippets/javascript/get-url-variables/ | |
function getQueryVariable(variable) | |
{ | |
var query = window.location.search.substring(1); | |
var vars = query.split("&"); | |
for (var i=0;i<vars.length;i++) { | |
var pair = vars[i].split("="); | |
if(pair[0] == variable){return pair[1];} |
sudo apt-get install build-essential | |
sudo apt-get install python-dev | |
// Maybe need to install PIP | |
sudo pip install RPi.GPIO |
// Listen for orientation changes | |
window.addEventListener("orientationchange", function() { | |
// Announce the new orientation number | |
alert(window.orientation); | |
}, false); | |
// Listen for resize changes | |
window.addEventListener("resize", function() { | |
// Get screen size (inner/outerWidth, inner/outerHeight) | |
// They're a way to efficiently store and represent a collection of boolean values. --> | |
//For example, taking this flags enum: | |
enum Traits { | |
None = 0, | |
Friendly = 1 << 0, // 0001 -- the bitshift is unnecessary, but done for consistency | |
Mean = 1 << 1, // 0010 | |
Funny = 1 << 2, // 0100 | |
Boring = 1 << 3, // 1000 |
function roundToHalf(value) { | |
var converted = parseFloat(value); // Make sure we have a number | |
var decimal = (converted - parseInt(converted, 10)); | |
decimal = Math.round(decimal * 10); | |
if (decimal == 5) { return (parseInt(converted, 10)+0.5); } | |
if ( (decimal < 3) || (decimal > 7) ) { | |
return Math.round(converted); | |
} else { | |
return (parseInt(converted, 10)+0.5); | |
} |
<?php | |
// AWR Functions ////////////// | |
function awr_get( $action, $params = [] ){ | |
$token = env('AWR_KEY'); | |
$awr_url = env('AWR_URL'); | |
$paramsString = ""; | |
if( count($params) > 0 ){ |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"