style page 3 - Dave's Blog

Search
My timeline on Mastodon

Retweet of Real_CSS_Tricks

2016 Jan 30, 8:30
display: contents;It's new.https://rachelandrew.co.uk/archives/2016/01/29/vanishing-boxes-with-display-contents/ β€¦parent (disp flex) child (disp contents) grandchildgrandchild now flex item
PermalinkComments

Retweet of nrrrdcore

2016 Jan 30, 8:12
These are getting really good. pic.twitter.com/mmsEcES9bx
PermalinkComments

Retweet of iamdevloper

2016 Jan 28, 1:03
pic.twitter.com/hIp4Ytslhv
PermalinkComments

Tweet from David_Risney

2016 Jan 27, 10:28
Identify coder from binary based on code style. https://freedom-to-tinker.com/blog/aylin/when-coding-style-survives-compilation-de-anonymizing-programmers-from-executable-binaries/ β€¦ Following company style guidelines is now a privacy issue.
PermalinkComments

Tweet from David_Risney

2016 Jan 27, 9:57
FCC proposes replacing cable card with software based equivalent. Would be amazing if it could happen. http://arstechnica.com/business/2016/01/cable-lobby-is-really-mad-about-fccs-set-top-box-competition-plan/ β€¦
PermalinkComments

Retweet of FxSiteCompat

2016 Jan 27, 7:44
#Firefox 46 Developer Edition is out! Non-HTTPS pages w/ login form are now marked insecure https://www.fxsitecompat.com/versions/46/  pic.twitter.com/o2WZ6K2KxN
PermalinkComments

Retweet of mathias

2016 Jan 27, 10:29
Take any Facebook/Instagram photo URL.πŸ‘‰ append `.txt` β†’ ASCII artπŸ‘‰ append `.html` β†’ colored ASCII artE.g. https://scontent-ams3-1.cdninstagram.com/t51.2885-15/e35/11906246_1700002456899911_1391970345_n.jpg.html β€¦
PermalinkComments

Tweet from David_Risney

2016 Jan 27, 9:15
Whatever happened to sitcom couples? Conspiracy and death. https://medium.com/@iamchrisscott/whatever-happened-to-television-s-most-famous-couples-c9d569a892ea#.w2wijr6he β€¦ Had to recheck URL I wasn't on clickhole
PermalinkComments

Retweet of f4grx

2016 Jan 26, 7:43
@FakeUnicode also UNICODE CONSORTIUM FACE REVIEWING EMOJI CODEPOINT REQUESTS
PermalinkComments

Retweet of FakeUnicode

2016 Jan 26, 7:15
OH COME ON. SERIOUSLY?? pic.twitter.com/EMdqGylC4L
PermalinkComments

Retweet of ericlaw

2016 Jan 26, 5:09
pic.twitter.com/cxDdy6pDax
PermalinkComments

Retweet of edwardsanchez

2016 Jan 26, 4:51
First time I see transparent LED being used. Feels science fictiony.
PermalinkComments

Retweet of iainthomson

2016 Jan 25, 10:04
What computer users see in security warning boxes #enigma2016 Very, very true. pic.twitter.com/8V4SlGwKAV
PermalinkComments

Retweet of TheAVClub

2016 Jan 25, 4:05
ICYMI: β€œWeird Al” Yankovic joins Comedy Bang! Bang! as bandleader and co-host http://avc.lu/1nkaxWC 
PermalinkComments

Retweet of xeni

2016 Jan 25, 1:18
UK film censors forced to watch a 2-day long movie of paint drying cc: @greatdismal http://boingboing.net/2016/01/25/uk-film-censors-forced-to-watc.html β€¦ pic.twitter.com/M8LWjiWUXe
PermalinkComments

Retweet of FakeUnicode

2016 Jan 24, 10:52
.@alolita How Ancient Egypt fell. "But great Pharaoh, we need a snake playing croquet." "You have like 50 snake symbols." "But, croquet!"
PermalinkComments

Retweet of Crash_Games

2016 Jan 24, 10:25
I sure missed these guys. pic.twitter.com/eMFPs4fNUP
PermalinkComments

Retweet of waxpancake

2016 Jan 24, 9:10
"This is a cool song but it was taken down by youtube so I fixed the audio." πŸ˜‚ (thx, @sarahjeong) http://youtu.be/-5KnWfx_H-s 
PermalinkComments

Tweet from David_Risney

2016 Jan 24, 3:13
Unicode includes 24 clock face code points, so obv here's my Unicode clock: http://david-risney.github.io/UnicodeClock/ 
PermalinkComments

Unicode Clock

2016 Jan 24, 2:00

I've made a Unicode Clock in JavaScript.

Unicode has code points for all 30 minute increments of clock faces. This is a simple project to display the one closest to the current time written in JavaScript.

Because the code points are all above 0xFFFF, I make use of some ES6 additions. I use the \u{XXXXXX} style escape sequence since the old style JavaScript escape sequence \uXXXX only supports code points up to 0xFFFF. I also use the method String.codePointAt rather than String.charCodeAt because the code points larger than 0xFFFF are represented in JavaScript strings using surrogate pairs and charCodeAt gives the surrogate value rather than codePointAt which gives the code point represented by the pair of surrogates.

"πŸ•›".codePointAt(0)
128347
"πŸ•›".charCodeAt(0)
55357

πŸ•πŸ•‘πŸ•’πŸ•“πŸ•”πŸ••πŸ•–πŸ•—πŸ•˜πŸ•™πŸ•šπŸ•›πŸ•œπŸ•πŸ•žπŸ•ŸπŸ• πŸ•‘πŸ•’πŸ•£πŸ•€πŸ•₯πŸ•¦πŸ•§

The ordering of the code points does not make it simple to do this. I initially guessed the first code point in the range would be 12:00 followed by 12:30, 1:00 and so on. But actually 1:00 is first followed by all the on the hour times then all the half hour times.

PermalinkCommentsjavascript Unicode
Older EntriesNewer Entries Creative Commons License Some rights reserved.