Skip to content

Instantly share code, notes, and snippets.

View ksdme's full-sized avatar
⚔️

Kilari Teja ksdme

⚔️
View GitHub Profile
@ksdme
ksdme / SLM
Last active August 31, 2018 19:13
Testing SlimcoinTxBot with 50 transactions.
ksdme@gridComputer:~/Crypto/Slimcoin$./SlimcoinTxBot.py <rpc_username> <rpc_password>
Starting Slimcoin Transaction Bot 0.0.1
Found Slimcoin daemon SLMv0.5.0-51-g5b129906-alpha, total balance 1500.24
#1 @1535740645.255 txn initiated 4b9e4752ab46a9c0a8e6608ab9c40d7d58692af3c144250277789414d012156f
delaying 264 μs
#2 @1535740646.244 txn initiated 198569cffe4d3b01a9d4dc7ae3a95eaca6feeb57f6803a32695b0fb285b8a008
delaying 223 μs
#3 @1535740647.518 txn initiated 03a64e4fa85bff94fc67963f3febef0c617bbb64f2e637254c7883559dad0805
delaying 292 μs
#4 @1535740648.852 txn initiated f3e0c770318d9025ca4d3c274843bc305df6b9a5c5560fcdf6928ee48f45dfb5
https://github.com/vfaronov/httpolice
https://github.com/myint/autoflake
https://github.com/hhatto/autopep8
https://github.com/PyCQA/bandit
https://github.com/myint/cppclean
https://github.com/theandrewdavis/cpplint
https://github.com/willkg/dennis
https://github.com/jimo1001/docutils-ast-writer
https://github.com/myint/eradicate
https://github.com/retr0h/git-url-parse
[
"object name",
"edit status",
"editorial update",
"urgency",
"subject reference",
"category",
"supplemental category",
"fixture identifier",
"keywords",
@ksdme
ksdme / setup.py
Created July 23, 2019 11:45
py3exiv2 patched setup.py file for installation on Windows using vcpkg.
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
import os
import glob
import subprocess
from setuptools import setup, find_packages, Extension
diff --git a/lib/main.dart b/lib/main.dart
index c2b13d3..2362ab4 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -1,58 +1,55 @@
import 'package:flutter/material.dart';
+import 'package:states_rebuilder/states_rebuilder.dart';
void main() => runApp(MyApp());
diff --git a/lib/main.dart b/lib/main.dart
index 2362ab4..3a8bad4 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -4,6 +4,7 @@ import 'package:states_rebuilder/states_rebuilder.dart';
void main() => runApp(MyApp());
class CounterBloc {
+ int factor = 1;
int counter = 0;
@ksdme
ksdme / sahil-prime.py
Created January 7, 2020 13:21
Find the biggest prime factor of a number.
# I have a number n
# Test divisinility by numbers in the range 2, Sqrt(n)
# If n is divisible by a prime p, for the first time, keep on dividing it with p till you find the largets power of p that divides n.
# Replace n by n/(p**alpha)
# Repeat the process until I get n = 1 or
# Print p
from math import ceil
subject = 600851475143
answer = 0
from scipy import stats
import math
def black_scholes (s, k, t, v, rf, div, cp):
""" Price an option using the Black-Scholes model.
s: initial stock price
k: strike price
t: expiration time
v: volatility
rf: risk-free rate
import graphene
venues = {
'0': 'Big Hotel',
'1': 'Small Hotel',
}
class Venue(graphene.ObjectType):
address = graphene.String()
@ksdme
ksdme / stdlib-docs-rep.yaml
Last active May 22, 2020 14:08
Representation of ferret stdlib documentation
utils:
- token: WAIT
file_name: utils/wait.go
line_number: 12
doc:
desc: Wait pauses the execution for a given period.
params:
- name: timeout
type:
- Float