Skip to content

Instantly share code, notes, and snippets.

View sandeepthukral's full-sized avatar

Sandeep Thukral sandeepthukral

View GitHub Profile
@sandeepthukral
sandeepthukral / npm-config-proxy
Created April 7, 2015 08:40
How to configure proxy for npm
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
My password had a @ and a % in it, but url encoding it (and then not putting quotes around) worked for me
I struggled a bit because I have a @ character in my password :-)
The solution is to surround the username and password in quotes
npm config set proxy http://"user:P@ssword"@proxy.server:1234
@sandeepthukral
sandeepthukral / ng-repeat-key-value
Created April 1, 2015 11:30
key, value in ng-repeat
<tr ng-repeat="(key, value) in data">
<td> {{key}} </td> <td> {{ value }} </td>
</tr>
@sandeepthukral
sandeepthukral / index.html
Last active August 29, 2015 14:08 — forked from anonymous/index.html
Even and Odd in ngRepeat
<!doctype html>
<html ng-app="myApp">
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/foundation/4.3.2/css/foundation.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.js"></script>
<style id="jsbin-css">
.odd {
background-color: blue;
}
.even {