Skip to content

Instantly share code, notes, and snippets.

View varatep's full-sized avatar

vara varatep

View GitHub Profile
@varatep
varatep / single-number.js
Created April 1, 2020 18:27
leetcode 30-day week 1 day 1
/**
* @param {number[]} nums
* @return {number}
*/
var singleNumber = function(nums) {
let hash = {};
for (let i = 0; i < nums.length; i++) {
if (typeof hash[nums[i]] === 'undefined') {
hash[nums[i]] = 1;
/**
* @name MarkerWithLabel for V3
* @version 1.1.9 [June 30, 2013]
* @author Gary Little (inspired by code from Marc Ridey of Google).
* @copyright Copyright 2012 Gary Little [gary at luxcentral.com]
* @fileoverview MarkerWithLabel extends the Google Maps JavaScript API V3
* <code>google.maps.Marker</code> class.
* <p>
* MarkerWithLabel allows you to define markers with associated labels. As you would expect,
* if the marker is draggable, so too will be the label. In addition, a marker with a label
@varatep
varatep / JSONKit.podspec.json
Created January 29, 2015 19:13
JSONKit Podspec for 1.6
{
"name": "JSONKit",
"version": "1.6",
"summary": "A Very High Performance Objective-C JSON Library.",
"homepage": "https://github.com/johnezang/JSONKit",
"authors": "John Engelhart",
"source": {
"git": "https://github.com/creativemess/JSONKit.git"
},
"source_files": "JSONKit.*"

Keybase proof

I hereby claim:

  • I am varatep on github.
  • I am varatep (https://keybase.io/varatep) on keybase.
  • I have a public key whose fingerprint is 5914 06BA 1D15 3972 82A4 E56B 63DE BBF0 084C 12D4

To claim this, I am signing this object:

@varatep
varatep / pdftemplate.html.erb
Created June 30, 2014 02:05
template for pdf generation causing ruby on rails deployment error
<!DOCTYPE html>
<html lang="en">
<head>
<style>
.logo {
width:250px;
height:100px;
}