320x480 (~165 ppi mdpi)
320dp x 455dp
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
/** | |
* | |
* @param {HTMLSpanElement} timestampContent | |
*/ | |
function getAbsoluteTime(timestampContent, timestampContainer) { | |
const ABSOLUTE_TIME_ATTR = 'data-tooltip-content'; | |
const attr = (timestampContainer && function (att) { return timestampContainer.getAttribute(att); }) || function () { return timestampContent.innerText }; | |
let absoluteTime = attr(ABSOLUTE_TIME_ATTR) || attr('title'); | |
absoluteTime = absoluteTime.indexOf(",") !== -1 |
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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
indent_style = space |
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
const removeAtRouteName = (state, routeName) => { | |
if (!routeName || !state.routes || !state.routes.length) { | |
return state; | |
} | |
const newState = { ...state }; | |
let removed = false; | |
state.routes.forEach((currentRoute, index) => { | |
if (currentRoute.routeName === routeName) { |
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
const replaceAtRouteName = (state, routeName, route) => { | |
if (!route || !routeName || !state.routes) { | |
return state | |
} | |
const newState = { ...state } | |
let replaced = false | |
state.routes.forEach((value, index) => { | |
let replacedRoute = value |
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
const payments = [ | |
{ | |
"nr": 1, | |
"payment": 1180.01 | |
}, | |
{ | |
"nr": 2, | |
"payment": 1177.81 | |
}, | |
{ |
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
// @flow | |
export type TimePeriod = 'am' | 'pm'; | |
export type TimeOfTheDay = { hour: number, minute: number, period: TimePeriod }; | |
const getTimeOfTheDay = (date: Date): TimeOfTheDay => ({ | |
hour: date.getHours() > 12 ? date.getHours() - 12 : date.getHours(), | |
minute: date.getMinutes(), | |
period: date.getHours() >= 12 ? 'pm' : 'am', | |
}); |
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
( set -x ; for f_png in *.png ; do f="${f_png%.png}" ; convert "$f_png" -flatten "$f.pgm" && potrace "$f.pgm" -s -o "$f.svg" ; done ) |
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
[user] | |
name = Uilque Messias | |
[alias] | |
graph = log --graph --oneline --all --decorate --stat | |
graphall = log --graph --all --decorate --stat | |
pull = pull --rebase | |
graphline = log --graph --oneline --all --decorate | |
delbranch = "!f() { git push origin :\"$1\" --no-verify && git branch -d \"$1\"; }; f" | |
contributors = shortlog -s -n --no-merges |