Here I'm trying to understand what happens when I run
./hello
#include
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
#!/usr/bin/env python | |
""" | |
OSX ONLY! | |
Monitor OSX application usage from your shell | |
and at the end of the day see how much you don't | |
work ;) | |
Author: Glen Zangirolami | |
http://theglenbot.com |
Here I'm trying to understand what happens when I run
./hello
#include
function timeSince(date) { | |
var seconds = Math.floor((new Date() - date) / 1000); | |
var interval = Math.floor(seconds / 31536000); | |
if (interval > 1) { | |
return interval + " years"; | |
} | |
interval = Math.floor(seconds / 2592000); |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.
Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.
<staticContent lockAttributes="isDocFooterFileName"> | |
<mimeMap fileExtension=".323" mimeType="text/h323" /> | |
<mimeMap fileExtension=".aaf" mimeType="application/octet-stream" /> | |
<mimeMap fileExtension=".aca" mimeType="application/octet-stream" /> | |
<mimeMap fileExtension=".accdb" mimeType="application/msaccess" /> | |
<mimeMap fileExtension=".accde" mimeType="application/msaccess" /> | |
<mimeMap fileExtension=".accdt" mimeType="application/msaccess" /> | |
<mimeMap fileExtension=".acx" mimeType="application/internet-property-stream" /> | |
<mimeMap fileExtension=".afm" mimeType="application/octet-stream" /> | |
<mimeMap fileExtension=".ai" mimeType="application/postscript" /> |
// This is an example of how to fetch external data in response to updated props, | |
// If you are using an async mechanism that does not support cancellation (e.g. a Promise). | |
class ExampleComponent extends React.Component { | |
_currentId = null; | |
state = { | |
externalData: null | |
}; |
invoices/123
?
in a URL like /assignments?showGrades=1
.#
portion of the URL. This is not available to servers in request.url
so its client only. By default it means which part of the page the user should be scrolled to, but developers use it for various things.