Skip to content

Instantly share code, notes, and snippets.

View amritghimire's full-sized avatar

Amrit Ghimire amritghimire

View GitHub Profile
@amritghimire
amritghimire / licensing.ipynb
Created January 31, 2023 07:23
licensing.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@amritghimire
amritghimire / services_login.js
Last active January 7, 2020 14:46
Util and http service segregation
const {post} = =require('../utils/http');
const {putToken, saveUser} = require('../utils/token');
async function login(username, password){
try{
const response = await post('/login',{username, password});
if(response.status === 201){
// Login Successful.
putToken(response.data.token);
saveUser(response.data.user);
@amritghimire
amritghimire / ices_coding_competition_solution_3.py
Created December 19, 2018 10:42
Solution to Question 3 of i-CES Coding Competition
f = lambda n:sorted(str(n))
n = 99999
while not f(n*2) == f(n*3) == f(n*4) == f(n*5) == f(n*6): n += 9
print(n)
@amritghimire
amritghimire / ices_coding_competition_solution_2.py
Created November 22, 2018 03:37
Solution to Question 2 of i-CES Coding Competition
def compute():
ans = sum(x for x in range(1000) if (x % 3 == 0 or x % 5 == 0))
return str(ans)
if __name__ == "__main__":
print(compute())

Keybase proof

I hereby claim:

  • I am amritghimire on github.
  • I am amritghimire (https://keybase.io/amritghimire) on keybase.
  • I have a public key whose fingerprint is F83D 0484 26BD 7B2A 63CD AC00 08E8 9580 7FE4 35FE

To claim this, I am signing this object:

@amritghimire
amritghimire / List.md
Created March 18, 2017 08:32 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):