Menu

Close
  • Home
  • JavaScript
  • jQuery Plugin
  • AngularJS
  • Webpack
  • CSS
  • Demo
  • Chrome Extension
  • luluyum.com
Donate
Menu

GeniusCarrier

Happy Scripting!

Scroll Down
← Newer Posts Page 2 of 6 Older Posts →

Using jQuery $.deferred with multiple ajax calls

I've been working on SPA (single-page application) with different frameworks, such as AngularJS and DurandalJS. Most of the time, each partial or viewModel needs multiple restful »

Author image Yang Zhao on javascript 26 June 2014

Find the position of the first occurrence of a substring in a string - JavaScript

Question Find the position of the first occurrence of a substring in a string. Returns -1 if the substring is not found. Origin from: Glassdoor Solution »

Author image Yang Zhao on leetcode 28 May 2014

How to create a download link in HTML

Regarding to this topic, I have 5 ways to add a file download link/button in HTML. See below: 1. <a> <a href= »

Author image Yang Zhao on javascript 20 May 2014

JavaScript Type Conversion

This post aims to only list out the most common use of JavaScript Type Conversions: Convert to Boolean: var boolValue = !!x; Convert to String: var stringValue »

Author image Yang Zhao on javascript 26 February 2014

Common Sort Algorithms - JavaScript

Following lists 5 common sort algorithms JavaScript implementation. Bubble Sort function bubble_sort(arr) { if (arr.length arr[j + 1]) { var temp = arr[j]; arr[j] »

Author image Yang Zhao on leetcode 27 December 2013

A problem with ng-src in AngularJS

A problem with ngSrc: The image doesn't reload/change itself if the new/updated image has the same URL as the old image. Solution: Use cache »

Author image Yang Zhao on angularjs 17 December 2013

Searching a 2D Sorted Matrix (2) – JavaScript

Question 2D Matrix(m * n) of positive and negative numbers is given. Matrix is sorted rowwise and columnwise. You have to return the count of -ve »

Author image Yang Zhao on leetcode 12 December 2013

Rotating an array in place - JavaScript

Question Rotate a one-dimensional array of n elements to the right by k steps. For instance, with n=7 and k=3, the array {a, b, »

Author image Yang Zhao on leetcode 12 December 2013

Finding all unique triplets that sums to zero - JavaScript

Question Given a set S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets »

Author image Yang Zhao on leetcode 12 December 2013

Searching an Element in a Rotated Sorted Array - JavaScript

Question Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 »

Author image Yang Zhao on leetcode 12 December 2013
← Newer Posts Page 2 of 6 Older Posts →
GeniusCarrier © 2022