Skip to content

Instantly share code, notes, and snippets.

View dsouzadyn's full-sized avatar
♟️
Am I just a pwn ;)

Dylan Dsouza dsouzadyn

♟️
Am I just a pwn ;)
View GitHub Profile
@dsouzadyn
dsouzadyn / pattern.cpp
Created June 23, 2014 13:45
Cpp Pattern
#include <iostream>
using namespace std;
int main(){
for(int a = 1;a <= 5;a++){
for(int b = a; b > 0;b--){
cout<<b<<" ";
}
cout<<endl;
@dsouzadyn
dsouzadyn / Simple-Login.markdown
Created October 7, 2014 14:44
A Pen by Dylan Dsouza.

Simple Login

Just created a simple login form, nothing professional, just started out, so you know what to expect :)

A Pen by Dylan Dsouza on CodePen.

License.

@dsouzadyn
dsouzadyn / interpreter
Last active August 29, 2015 14:24
Medium Blog Post 1
>>> 1 + 1
@dsouzadyn
dsouzadyn / LICENSE.txt
Created March 6, 2016 16:36
C program for matrix multiplication
The MIT License (MIT)
Copyright (c) 2016 Dylan Dsouza
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@dsouzadyn
dsouzadyn / ut3.c
Created March 13, 2016 15:21
Pattern solution of last years ut3 paper
#include <stdio.h>
int main(){
int a,b,c,d;
int n = 5;
for(a=1; a<=n; a++){
char x = 'G';
for(b=1; b<=n-a; b++)
printf(" ");
for(d=a; d>=1; d--)
printf("%d",d);
@dsouzadyn
dsouzadyn / prog.c
Created April 7, 2016 09:37
Student Record Program
#include <stdio.h>
#define MAX 10
struct date {
int year;
int month;
int date;
};
struct Student_record {
@dsouzadyn
dsouzadyn / delete.ino
Last active July 24, 2016 08:10
Robocon Assignment
int count = 0;
int sum = 0;
byte a;
void setup() {
Serial.begin(9600);
}
void loop() {
/*
@dsouzadyn
dsouzadyn / main.c
Created September 25, 2016 14:03
Tree Traversal
#include <stdio.h>
#include <malloc.h>
#define R return
struct node { int data; struct node* left; struct node* right; };
struct node* insert(struct node* tree, int val)
{
if (tree == NULL) {
tree = (struct node*) malloc(sizeof(struct node));
tree->left = NULL;
@dsouzadyn
dsouzadyn / DemoClass.java
Last active September 26, 2016 18:24
Java program for finding character count
import java.util.Scanner;
public class DemoClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
int upperCaseCount = 0,
lowerCaseCount = 0,
spacesCount = 0,
class Complex:
def __init__(self, a = 0, b = 0):
self.a = a
self.b = b
def __repr__(self):
if self.b >= 0:
return '{:0.2f}+{:0.2f}i'.format(self.a, self.b)
else:
return '{:0.2f}-{:0.2f}i'.format(self.a, abs(self.b))