Skip to content

Instantly share code, notes, and snippets.

🎧
Focusing

Manoj Chapagain chapagainmanoj

🎧
Focusing
  • Pulchowk, Lalitpur
Block or report user

Report or block chapagainmanoj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View c#
string URLAuth = "https://khalti.com/api/v2/payment/verify/";
string postString = "{\"token\" : \"" + token + "\", \"amount\" : " + amt + " }";
const string authorization_key = "Key test_secret_key_26c3759a78884aecb70f7662e2ab3809";
var request = (HttpWebRequest) WebRequest.Create(URLAuth);
var postData = "{\"token\" : \"" + token + "\", \"amount\" : " + amt + " }";
//var data = Encoding.UTF8.GetBytes(postData);
@chapagainmanoj
chapagainmanoj / top20
Created Dec 18, 2018
your top 20 terminal commands
View top20
history | \
awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | \
grep -v "./" | \
column -c3 -s " " -t | \
sort -nr | nl | head -n 20
View woocommerse-khalti.yml
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
View awsClient.js
import o from "mithril";
import {required, isString, isFunction, isBoolean} from "validatex";
import {http, getURL} from "./../utils/misc.js";
import {
Segments,
Segment,
Field,
Image,
Progress,
Icon,
@chapagainmanoj
chapagainmanoj / App.vue
Created Apr 4, 2018
This is an working example of khalti checkout client withi vuejs
View App.vue
<template>
<div id="app">
<h2> Khalti {{msg }}</h2>
<button v-on:click="publish">Pay With </button>
<p></p>
</div>
</template>
<script>
View user.json
{"total_pages":1,"total_records":6,"next":null,"previous":null,"record_range":[1,6],"current_page":1,"records":[{"notification":{"category":{"name":"User","idx":"n9o5L7LqbcBqVndBzWYbrE"},"type":{"name":"Fund offer","idx":"EidoHG4bwm3ie5tpB8MzUm","template":"Fund worth Rs {amount} has been offered by {user} ({identity})."},"image_url":"","fillers":{"user":"Ishwor Shrestha","identity":"9840020819","amount":3000},"idx":"tmDGX5rcyYt3qZnYHRuXKb","created_on":"2018-02-23T12:05:15.506948+05:45"},"remarks":"🎉","user":"RoAAhiBtMieuQzTeFnKNEg","idx":"tmDGX5rcyYt3qZnYHRuXKb","created_on":"2018-02-23T12:05:15.506948+05:45","actions":[]},{"notification":{"category":{"name":"User","idx":"n9o5L7LqbcBqVndBzWYbrE"},"type":{"name":"Info","idx":"VK9FmJqUfKSRACx4Yn34P5","template":"You have been awarded Rs. {fillers.amount} because {fillers.invited_to.name} has just signed up using your code."},"image_url":"","fillers":{"fillers.amount":10.0,"fillers.invited_by.name":"Manoj Chapagain","amount":1000,"invited_to":{"name":"Laxmi Pr
You can’t perform that action at this time.