This file contains 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
/** | |
* A module for handling dropdown menus in Decode. | |
* @module DecodeDropdown | |
* @version 1.0.0 | |
* @author Scott Smith <[email protected]> | |
*/ | |
var DecodeDropdown = ( function () { | |
'use strict'; | |
/** |
This file contains 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 | |
$domain = "img.scottshar.es/"; | |
//server-side directory | |
$directory_self = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']); | |
$uploadsDirectory = $_SERVER['DOCUMENT_ROOT'] . $directory_self; | |
// Image filetype check source: | |
// http://designshack.net/articles/php-articles/smart-file-type-detection-using-php/ | |
$tempFile = $_FILES['media']['tmp_name']; |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am ScottSmith95 on github. | |
* I am scottsmith (https://keybase.io/scottsmith) on keybase. | |
* I have a public key whose fingerprint is 6D0E B01E A1E7 EE3C 8F08 F470 D589 9DEB 2F7E 8D8E | |
To claim this, I am signing this object: |
This file contains 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 | |
/* | |
* This functon allows a child theme to avoid incurring the performance penalty | |
* of using a CSS @import in a nearly empty child theme. | |
* Instead, use this function in the child theme's functions.php file and use | |
* a plugin like Jetpack to add Custom CSS to your theme. | |
*/ | |
function decode_child_styles() { |
This file contains 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 | |
function decode_child_remove_font() { | |
wp_dequeue_style( 'decode-font-stylesheet' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'decode_child_remove_font', 20 ); | |
function decode_child_add_typekit() { | |
echo '<script type="text/javascript" src="//use.typekit.net/XXXXXXX.js"></script> | |
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>'; |
This file contains 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
# coding: utf-8 | |
''' This script allows you to copy a .py script to the iOS clipboard and then use Open In... | |
to have that script saved in Pythonista. | |
This requires both the Workflow and Pythonista apps | |
and either of the following Workflows: | |
Save in Pythonista (from Workflow Action Extension) https://workflow.is/workflows/80c7bee7a6c446dc872964600ddd57fd | |
Open in Pythonista (from Document Picker) https://workflow.is/workflows/e68fdf26479d473b92443a9a69fe176c |
This file contains 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
// Libraries | |
#include <ESP8266WiFi.h> // https://github.com/esp8266/Arduino | |
#include <ESP8266WiFiMulti.h> | |
#include <PubSubClient.h> // https://github.com/knolleary/pubsubclient/ | |
#include <Wire.h> | |
#include <LiquidTWI.h> // https://github.com/Stephanie-Maks/Arduino-LiquidTWI | |
#include <HX711.h> // https://github.com/bogde/HX711 | |
// Some immutable global definitions/constants | |
#define mqtt_server "mediatedspaces.net" // Class server. |
This file contains 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
# -*- coding: utf-8 -*- | |
import pandas as pd | |
in_file_name = 'WDIData.csv' # Make sure this file is in the same folder. | |
data = pd.read_csv(in_file_name) | |
data.replace('..', 'Null', inplace=True) # Replace WDI's ".." for missing data with "Null". | |
data.dropna(axis=1, how='all', inplace=True) # Drop columns with exclusively NA/Null data. | |
data.drop(data.columns[[1, 3]], axis=1, inplace=True) # Remove country code, series code. |