Skip to content

Instantly share code, notes, and snippets.

View harshitanand's full-sized avatar
🏠
Working from home

Harshit Anand harshitanand

🏠
Working from home
  • Bangalore, India
View GitHub Profile
@harshitanand
harshitanand / Random Quote Machine.markdown
Created September 19, 2015 14:04
Random Quote Machine
// Bonfire: Convert HTML Entities
// Author: @harshitanand
// Challenge: http://www.freecodecamp.com/challenges/bonfire-convert-html-entities
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function convert(str) {
// :)
str = str.replace(/[&|<|>|'|"]/gi, function(a) {
switch (a) {
case '&':
// Bonfire: Where art thou
// Author: @harshitanand
// Challenge: http://www.freecodecamp.com/challenges/bonfire-where-art-thou
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function isSuper(a,b){
var l=b.length,i=0,c;
if(l>a.length){return false;}
else{
for(i;i<l;i++){
@harshitanand
harshitanand / Realtime Calculator.markdown
Created February 29, 2016 08:36
Realtime Calculator
@harshitanand
harshitanand / gist:4340feaba4df8170aac9f66f87b070a5
Created December 15, 2016 21:29 — forked from entaroadun/gist:1653794
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation:

@harshitanand
harshitanand / Dockerfile
Created August 4, 2017 11:32
Simple Dockerfile using alpine linux to create image
FROM alpine
RUN apk update && apk upgrade
RUN apk add nodejs
WORKDIR /app
ADD . /app
ENTRYPOINT [ "node", "server.js" ]
@harshitanand
harshitanand / Dockerfile-ironio
Created August 4, 2017 11:38
Docker file using node image from iron.io as base image
FROM iron/node
WORKDIR /app
ADD . /app
ENTRYPOINT [ "node", "server.js" ]
@harshitanand
harshitanand / app.go
Last active August 4, 2017 12:04
Simple application written in Golang
package main
import (
"fmt"
"log"
"net/http"
"github.com/treeder/easy-go-in-docker/Godeps/_workspace/src/github.com/gorilla/mux"
)
func main() {
@harshitanand
harshitanand / Dockerfile-goapp
Created August 4, 2017 12:00
Create docker image for golang - app
FROM iron/base
WORKDIR /app
# copy binary into image
COPY hello /app/
ENTRYPOINT ["./hello"]