Skip to content

Instantly share code, notes, and snippets.

View adiultra's full-sized avatar

Aditya Singh adiultra

View GitHub Profile
@adiultra
adiultra / compilabeZenome.cpp
Last active September 25, 2016 08:54
a g++ version of zenome
#include <fstream>
#include <cstring>
#include <iomanip>
#include <cstdio>
#include <iostream>
#include <cstdlib>
typedef char str [80];
int i,j,indicator=0;
@adiultra
adiultra / inputInRust.md
Last active September 21, 2016 16:18
My strugle for input in rust

Difficulties

Rust is an awesome language but I was totally freaked out by its method of taking input. The code from guess the number is :

println!("Please input your guess.");

let mut guess = String::new();

io::stdin().read_line(&mut guess)
    .expect("failed to read line");
@adiultra
adiultra / compiling_error.txt
Created June 2, 2016 09:19
Class definition through header gives error 😢
/tmp/ccWO3LPP.o: In function `search(char*, List*)':
main.cpp:(.text+0x2fd): undefined reference to `List::tagView()'
main.cpp:(.text+0x49e): undefined reference to `List::view()'
/tmp/ccWO3LPP.o: In function `initiate()':
main.cpp:(.text+0x8fa): undefined reference to `List::List()'
/tmp/ccWO3LPP.o: In function `parse(char*)':
main.cpp:(.text+0xaae): undefined reference to `List::enter()'
main.cpp:(.text+0xd26): undefined reference to `List::append()'
main.cpp:(.text+0xda0): undefined reference to `List::indexView()'
main.cpp:(.text+0xee7): undefined reference to `List::changeStatus(int, char)'
@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.
@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 / 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 / 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 / OOps.cpp
Created April 18, 2016 02:42
OPP.cpp
#include <iostream>
using namespace std;
class parent {
int myVar;
protected:
@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 / homework.md
Last active December 13, 2015 17:01
A file containing homework