Skip to content

Instantly share code, notes, and snippets.

View eJayYoung's full-sized avatar
:octocat:
Learning

eJay eJayYoung

:octocat:
Learning
  • dian tech
  • hangzhou
View GitHub Profile
@eJayYoung
eJayYoung / gist:c8a28383da9e8bc731879982dd37186e
Last active September 23, 2018 07:53
获取图片旋转方向
function getOrientation(file, callback) {
var reader = new FileReader();
reader.onload = function(e) {
var view = new DataView(e.target.result);
if (view.getUint16(0, false) != 0xFFD8)
{
return callback(-2);
}
var length = view.byteLength, offset = 2;
@eJayYoung
eJayYoung / gist:39fb02a2c98c4912408dc1e70b44fb11
Created September 13, 2018 07:43 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: