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
# Optimizations | |
1. FlatList | |
const VehicleItem = React.memo(({ item }) => ( | |
<View style={{ height: ITEM_HEIGHT }}> | |
<Card style={styles.card}> | |
<Text style={styles.plate}>{item.plate}</Text> | |
<Text>Status: {statusMap[item.status]}</Text> | |
<Text style={[styles.battery, { color: getBatteryColor(item.battery) }]}> | |
Battery: {item.battery}% |
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
# | |
# app/build.gradle | |
# | |
apply plugin: "com.android.application" | |
apply plugin: 'io.fabric' | |
import com.android.build.OutputFile | |
project.ext.react = [ | |
entryFile: "index.js", |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>method</key> | |
<string>ad-hoc</string> | |
</dict> | |
</plist> |
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/sh | |
: ' | |
Requirements: | |
$ brew install imagemagick | |
Usage: | |
$ ./icon-tool iconPath destination | |
Where: |
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
Fatal error | |
java.lang.RuntimeException | |
First seen version | |
20420002 | |
File | |
ActivityThread.java | |
Exception message | |
java.lang.RuntimeException: Unable to resume activity {com.wsample.wsample/com.wsample.wsample.MainActivity}: |
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
Homebrew build logs for node on macOS 10.13.3 | |
Build date: 2018-04-19 17:03:06 |
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
/* Style the elements (nothing interesting here) */ | |
p{ | |
font-size: 16px; | |
width: 420px; | |
margin: 20px auto 0; | |
text-align:center; | |
} | |
.container{ |
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
// Test Android intent from command line | |
#adb shell am start -W -a android.intent.action.VIEW -d "http://domain.blah/" com.somedomain.appname | |
// Need to remember to pass a expression (fn) the watch or a full string path | |
vm.$onInit = function() { | |
$scope.$watch("$paymentInfoCtrl.cardModel.cardNumber", function(newValue, oldValue) { | |
console.log('oldValue: ' + oldValue + 'newValue: ' + newValue); | |
}); | |
}; |
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
mazon Web Services: Enterprise Security | |
Ethical Hacking: Website and Web Application Testing | |
CISSP Cert Prep: 4 Communication and Network Security | |
Ethical Hacking: Mobile Devices and Platforms | |
Ethical Hacking: Trojans and Backdoors | |
Ethical Hacking: Penetration Testing | |
CISSP Cert Prep: 3 Security Engineering | |
Cloud Computing: Cloud Security | |
Open Data: Unleashing Hidden Value | |
Ethical Hacking: Wireless Networks |
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() { | |
'use strict'; | |
angular.module('starter') | |
.directive('applyFocus', function($timeout) { | |
return { | |
link: function(scope, element, attrs) { | |
$timeout(function() { | |
element[0].style.color = "blue"; |
NewerOlder