This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
π Morning 854 commits βββββββββββββββββββββ 25.0% | |
π Daytime 844 commits βββββββββββββββββββββ 24.8% | |
π Evening 981 commits βββββββββββββββββββββ 28.8% | |
π Night 731 commits βββββββββββββββββββββ 21.4% |
######## Make any even/odd calculator with this method ######## | |
######################## Get Crazy ########################### | |
def getCrazy(n) | |
result = "case x\n" | |
1..n.times do |number| | |
result += " when #{number}\n" | |
result += " p '#{number % 2 == 0 ? 'even': 'odd'}'\n" |
/** | |
* Get the caret position in all cases | |
* | |
* @returns {object} left, top distance in pixels | |
*/ | |
getCaretTopPoint () { | |
const sel = document.getSelection() | |
const r = sel.getRangeAt(0) | |
let rect | |
let r2 |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
function convertTimestamp(timestamp) { | |
var d = new Date(timestamp * 1000), // Convert the passed timestamp to milliseconds | |
yyyy = d.getFullYear(), | |
mm = ('0' + (d.getMonth() + 1)).slice(-2), // Months are zero based. Add leading 0. | |
dd = ('0' + d.getDate()).slice(-2), // Add leading 0. | |
hh = d.getHours(), | |
h = hh, | |
min = ('0' + d.getMinutes()).slice(-2), // Add leading 0. | |
ampm = 'AM', | |
time; |