Skip to content

Instantly share code, notes, and snippets.

View adiultra's full-sized avatar

Aditya Singh adiultra

View GitHub Profile
@adiultra
adiultra / logarithms.py
Created September 26, 2015 16:32
This Program/Gist is a Python script that Prints the standard table log and antilog
import math
# let us create header
hdr = 'log \t'
for hd in range(0, 10):
hdr += repr(hd) + '\t'
for hd in range(10):
hdr += repr(hd) + ' '
@adiultra
adiultra / numstowords.py
Created November 27, 2015 16:10
This little python code when run prints the given number in words
words = [
["", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"],
["", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "ninteen"],
["", "ten", "twenty", "thirty", "fourty", "fifty", "sixty", "seventy", "eighty", "ninty"]
]
out = ""
def triplets(num):
msg = ""
@adiultra
adiultra / acro.md
Created November 27, 2015 16:54
Net acronyms website
@adiultra
adiultra / homework.md
Last active December 13, 2015 17:01
A file containing homework
@adiultra
adiultra / 16bits.py
Created February 14, 2016 14:16
The python code for a 16 bit clock - alpha Preview
from datetime import datetime
import time
import os
import sys
def printer(d):
if d == 0:
print(" . . . .")
elif d == 1:
@adiultra
adiultra / OOps.cpp
Created April 18, 2016 02:42
OPP.cpp
#include <iostream>
using namespace std;
class parent {
int myVar;
protected:
@adiultra
adiultra / color-dump.gpl
Created April 18, 2016 19:01
A Colour dump of my favorite colours (1000+)
GIMP Palette
Name: color-dump.gpl
Columns: 1
#
235 255 187 Caper ~
66 18 11 Oiled cedar ~
125 174 255 Havelock blue ~
192 232 79 Yellow green ~
255 143 127 Mona lisa ~
255 255 140 Texas ~
@adiultra
adiultra / file-handling-binary.md
Last active May 11, 2016 16:51
file-handling-binary doesn't work

#Binary File Handling

The following code doesn't work, please help me out.

##note

this ic TC++ not c++

Problem is with these:

@adiultra
adiultra / jup.md
Created May 27, 2016 19:00
jupyter error in latex rendering
import sympy as s
s.init_printing(use_latex='mathjax')
x = s.Symbol('x')
k = s.integrate(1/x+x**3, x)
k

4

@adiultra
adiultra / xkcd.svg
Created May 30, 2016 07:11
Xkcd icon for pmxkcd
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.