Skip to content

Instantly share code, notes, and snippets.

{"version":1,"resource":"file:///Users/ayeung/workspace/neetcode/binarySearchRotatedArray.js","entries":[{"id":"s2tj.js","timestamp":1704496912883},{"id":"pq4f.js","timestamp":1704496923055},{"id":"YILC.js","timestamp":1704497009168},{"id":"6p1v.js","timestamp":1704497054843},{"id":"ryng.js","timestamp":1704497092142},{"id":"265X.js","timestamp":1704497116581},{"id":"Q0De.js","timestamp":1704497127294},{"id":"Gmwq.js","timestamp":1704497155103},{"id":"ne8a.js","timestamp":1704497176318},{"id":"S9j1.js","timestamp":1704497210184},{"id":"sz1H.js","timestamp":1704497363462},{"id":"sZxi.js","timestamp":1704497459369},{"id":"MpJH.js","timestamp":1704497597862},{"id":"3aLF.js","timestamp":1704497721035},{"id":"Xdbm.js","timestamp":1704497743532},{"id":"rPvk.js","timestamp":1704497765012},{"id":"Xp4l.js","timestamp":1704497804589},{"id":"KlD9.js","timestamp":1704497831839},{"id":"pXmj.js","timestamp":1704498395405},{"id":"sTdb.js","timestamp":1704498419636},{"id":"TKEU.js","timestamp":1704498448614},{"id":"XB2s.js",
@andrewhyeung
andrewhyeung / upload.js
Created January 31, 2017 02:21
upload javascript in controller
var handleFileSelect=function(evt) {
var file=evt.currentTarget.files[0];
var reader = new FileReader();
reader.onload = function (evt) {
$scope.$apply(function($scope){
$scope.myImage=evt.target.result;
});
};
reader.readAsDataURL(file);
};