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 pi@raspberrypi.local | |
// 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 ); | |
} |
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
// Enable extra jetpack widgets: | |
wp-admin/admin.php?page=jetpack_modules |
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
styles | |
/includes | |
_base.scss | |
_fonts.scss | |
_functions.scss | |
_grid.scss | |
_mixins.scss | |
_normalize.scss | |
_typography-global.scss | |
_variables.scss |