Skip to content

Instantly share code, notes, and snippets.

View digi0ps's full-sized avatar
🐈
dfadfadfadsf

Sriram digi0ps

🐈
dfadfadfadsf
View GitHub Profile
@digi0ps
digi0ps / code.vhd
Created March 30, 2017 07:37
Stepper motor FPGA code.
Library ieee;
Use ieee.std_logic_1164.all;
Use ieee.std_logic_unsigned.all;
Use ieee.std_logic_arith.all;
entity stm_st1 is
port (clk:in std_logic; rst:in std_logic;
out_stm:out std_logic_vector(3 downto 0));
end stm_st1;
architecture stm_st_b of stm_st1 is
#include <stdio.h>
#include <string.h>
void calc_freq(char* str){
int freq[255], i, j, temp;
for(i=0;i<255;i++)
freq[i] = 0;
for(i=0;str[i]!='\0';str++){
int ascii = (int)str[i];
@digi0ps
digi0ps / skillhack.js
Last active May 29, 2024 06:20
Hack for skillrack copy paste
/*
-----------------------------
Paste into skillrack shortcut.
-----------------------------
Open console in your browser by pressing Ctrl+Shift+J in Chrome Windows.
Or right click the webpage, select inspect element and then change to console tab.
Paste the code you want into the quotes given in variable CODE and then paste the entire thing into
the console. And then press enter.
BUGS rn:
@digi0ps
digi0ps / helloweb.md
Created September 8, 2017 09:20
Our abstract for the Hello Web Hackathon.

Team 40

**Team members: **

  • Sriram R 16BCE1026
  • Vishnu Dut 16BCE1103
  • Jeremy Philemon 16BCE1367

@digi0ps
digi0ps / inlab6.cpp
Last active September 28, 2017 09:07
#include <iostream>
using namespace std;
int days[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30 ,31};
class UDdate
{
int day;
int month;
int year;
public:
@digi0ps
digi0ps / boruvka.md
Last active October 31, 2024 10:28
Boruvka's Algorirthm in C

Boruvka's Algorithm

Boruvka's Algorithm is a minimum spanning tree algorithm.

What's a spanning tree? In a graph (all this is about graphs), the path which covers all the nodes is called the spanning tree. Why tree? Because if a graph contains n nodes, a spanning tree contains n-1 nodes which is a property of a tree.

What's a minimum spanning tree?

@digi0ps
digi0ps / stock_homepage.html
Created November 11, 2017 15:36
Sanjay's homepage
<html class=""><head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta charset="utf-8">
<title>sanjay-stock-game</title>
<meta name="fb_admins_meta_tag" content="">
<link rel="shortcut icon" href="https://www.wix.com/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="https://www.wix.com/favicon.ico" type="image/x-icon">
<script type="text/javascript">
@digi0ps
digi0ps / dataz.csv
Created December 5, 2017 10:17
DataVizLab1
Age Group No. of Loans Bad Loans Good Loans Bad Rate
21-24 310 14 296 4.5
24-27 511 20 491 3.9
27-30 4000 172 3828 4.3
30-33 4568 169 4399 3.7
33-36 5698 188 5510 3.3
36-39 8209 197 8012 2.4
39-42 8117 211 7906 2.6
42-45 9000 216 8784 2.4
45-48 7600 152 7448 2
AKST Mean TemperatureF MeanDew PointF Mean Humidity Mean Sea Level PressureIn Mean VisibilityMiles Mean Wind SpeedMPH PrecipitationIn CloudCover Events WindDirDegrees
2014-1-1 42 38 86 29.77 8 14 0.69 8 Rain 138
2014-1-2 38 35 89 29.9 9 7 0.34 8 Rain 92
2014-1-3 36 36 97 30.32 9 3 0.02 7 Rain 102
2014-1-4 38 33 82 30.32 10 6 0 6 Rain 107
2014-1-5 42 36 77 30.02 8 17 0.37 8 Rain 113
2014-1-6 42 41 93 29.92 8 6 0.52 8 Rain 111
2014-1-7 42 39 92 29.71 7 8 0.33 8 Rain 119
2014-1-8 42 39 92 29.27 9 4 0.44 8 Rain 4
2014-1-9 39 36 87 29.38 9 7 0.39 8 Rain 269
@digi0ps
digi0ps / .block
Last active February 25, 2018 09:11
Vega-Lite Bl.ocks example
license: bsd-3-clause