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
// From: https://blog.gordonturner.com/2017/12/10/raspberry-pi-full-screen-browser-raspbian-december-2017/ | |
// Short URL to this document: | |
goo.gl/yx5pcX | |
// Install Raspbarian | |
// Log in | |
// Install on screen keyboard | |
// Open Terminal and run: |
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
on handle_url(args) | |
set myPath to "/" & |URL_VALUE| of args | |
tell application "Finder" to reveal myPath as POSIX file | |
return 1 | |
end handle_url |
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
// To accept Android SDK licenses: | |
~/Library/Android/sdk/tools/bin/sdkmanager --licenses | |
// If getting error could not resolve all dependencies for configuration ':app:debugAPKCopy' | |
// Need to add android support libraries through maven | |
https://stackoverflow.com/a/46014816/2196202 | |
https://github.com/invertase/react-native-firebase/issues/381#issuecomment-326561669 |
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
// Build iOS app | |
react-native run-ios |
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
( function( $, window, undefined ) { | |
'use strict'; | |
// Cache elements | |
var $stickyTabbar = $( '.tabbar__bar' ), | |
$stickyTabbarParent = $( '.tabbar' ), | |
stickyTabbarClass = 'is-fixed'; | |
var stickyTabbarToggle = function(e) { |
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
// ssh | |
ssh [email protected] | |
// Make raspberry pi ssh over usb: | |
// Insert flash drive to my mac | |
// Add the following to the end of /config.txt: | |
# Make usb act like ethernet | |
dtoverlay=dwc2 | |
# Ensure HDMI will work | |
hdmi_force_hotplug=1 |
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
// Make something executable | |
sudo chmod +x /etc/rc.local | |
// Run several commands as root | |
sudo sh -c "echo 21 >/sys/class/gpio/export" | |
// List all groups | |
getent group | |
// List all users |
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
// Fix misalignment of last item in a flexbox grid: | |
https://codepen.io/verticalgrain/pen/BwGoJX |
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
// List all packages | |
npm list | |
// List specific package | |
npm list grunt | |
// Update a package | |
npm update grunt | |
// Update to a specific version (older or newer) |
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
/** | |
* Add additional styles for our AMP template. AMP requires inline styles. | |
*/ | |
public static function amp_additional_css_styles() { | |
global $post; | |
$css = str_replace( 'STYLESHEET_DIRECTORY', get_stylesheet_directory_uri(), wpcom_vip_file_get_contents( get_stylesheet_directory_uri() . '/assets/css/amp.min.css', 3, 60 ) ); | |
echo ESPN_AMP::sanitize_meta_css( $css ); | |
} |