This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="app"> | |
<h2> Khalti {{msg }}</h2> | |
<button v-on:click="publish">Pay With </button> | |
<p></p> | |
</div> | |
</template> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: somewordpress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import urllib.request | |
import time | |
from bs4 import BeautifulSoup | |
user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36' | |
headers = {'User-Agent': user_agent} | |
url = 'https://www.investing.com/currencies/eur-usd' | |
response = requests.get(url, headers = headers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# activity | |
set -g monitor-activity on | |
# default shell | |
# set-option -g default-shell /bin/zsh | |
# key bindings | |
# ctrl b to ctrl Space | |
set -g prefix C-space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useEffect} from "react"; | |
import { useForm, useFormContext, FormContext } from "react-hook-form"; | |
import * as yup from 'yup'; | |
import styles from './FormComponent.css' | |
export function Form({ | |
validation, | |
defaults, | |
onSubmit, | |
actions, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Required: python3, selenium-driver | |
""" | |
TODO: | |
chmod +x attandance.py | |
# add to .bashrc or .zshrc to run script as alias | |
export KHALTI_SCRIPT="$HOME/khalti-script" | |
alias -g khaltiin="$KHALTI_SCRIPT/attandance.py" |