Skip to content

Instantly share code, notes, and snippets.

View shohan4556's full-sized avatar
💻
Making things that does not Exists !!

Shohanur Rahaman shohan4556

💻
Making things that does not Exists !!
View GitHub Profile
@shohan4556
shohan4556 / readme.md
Created July 15, 2016 11:33 — forked from xem/readme.md
Maths & trigonometry cheat sheet for 2D games

Conventions

  • o = [xo = 0, yo = 0] is the origin
  • A = [xA, yA] is a point on the 2D plane. Same for B, C, ...
  • lengths are in any unit (ex: pixels)
  • code snippets are in JavaScript

Degrees to radians

angleRad = angleDeg * Math.PI / 180;

@shohan4556
shohan4556 / UsefulUnityAssets.md
Created July 13, 2016 05:38 — forked from terrehbyte/UsefulUnityAssets.md
Useful Open-Source Unity Assets

Useful Open-Source Unity Assets

This is a compilation of various open-source Unity plugins, codebases, or utility scripts that may aid in expediting the development process.

Art / Design Tools

ProbePolisher - Light Probe Editor - keijiro

"ProbePolisher is a Unity Editor plugin for editing light probes. It works both on Unity Basic (free) and Unity Pro."

Code
Releases

#include <stdio.h>
int main()
{
int month[2], day[2], year[2], i, t, age;
scanf("%d", &t);
for (i = 1; i <= t; ++i)
{
@shohan4556
shohan4556 / uva 10591 happy number solution in C
Created April 30, 2015 02:22
uva 10591 happy number solution in C
/// Author :Shohanur Rahaman
/// UVA 10591
#include<stdio.h>
#include<math.h>
int main()
{
@shohan4556
shohan4556 / URI Online Judge | 1566 (Height) Solution in C++.cpp
Last active February 14, 2017 18:52
URI Online Judge | 1566 (Height) Solution in C++
/// Author : shohanur Rahaman
///Problem level : easy
/// URI : 1566
#include<iostream>
#include<stdio.h>
#include<algorithm>
using namespace std;
@shohan4556
shohan4556 / age sort - 11426 solution in C
Created April 18, 2015 19:01
age sort - 11426 solution in C
/// Author : Shohan
// Uva : 11462
#include<stdio.h>
#include<stdlib.h>
int compair(const void *i, const void *j);
int main()
{
@shohan4556
shohan4556 / UVA : 11727 - Cost Cutting
Created April 17, 2015 18:31
UVA : 11727 - Cost Cutting solution in C
/// Author: Shohanur Rahaman
// UVA : 11727
#include<stdio.h>
void sort(int array_size,int array[]);
int salary[3];
int main()
{
@shohan4556
shohan4556 / UVA 11332 (summing digit ) solution in C
Created April 16, 2015 18:52
UVA 11332 (summing digit ) solution in C
///Author : Shohanur Rahaman
//Problem level : Easy
//UVA : 11332 (Summing Digits)
#include <stdio.h>
int main()
{
int t;
long long int n;
package notepad;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.Scanner;
import java.io.*;
public class Notepad extends JFrame implements ActionListener {
private TextArea textArea = new TextArea("", 0,0, TextArea.SCROLLBARS_VERTICAL_ONLY);
// Author : Md.Shohanur Rahaman
import java.util.Scanner;
import java.lang.StringBuffer;
public class Main {
public static void main(String args[]){
Scanner input=new Scanner(System.in);
String str;