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
#include <stdio.h>
int main()
{
int i,n,x;
printf("Enter a positive number to check prime");
scanf("%d",&n);
x = sqrt(n);
for(i=2;i<=x;i++)
{
if(n%i==0)
@shohan4556
shohan4556 / Hackerearth -- In love with primes
Created February 13, 2015 04:43
Hackerearth -- In love with primes
#include<stdio.h>
#include<math.h>
int main()
{
int tc,n,i,a;
while(scanf("%d",&tc)==1){
for(i=1;i<=tc;i++){
scanf("%d",&n);
if(n%2==0 && n>=4){
@shohan4556
shohan4556 / URI OJ problem 1436 solution in C
Created March 12, 2015 18:17
URI OJ problem 1436 solution in C
/// URI : 1436
/// Author : Shohanur Rahaman
#include<stdio.h>
int main()
{
int tc,n,i,tmp,j;
int player[9];
int t=0;
scanf("%d",&tc);
@enamcse
enamcse / 11219 How old are you.c
Created May 1, 2012 22:18
UVa 11219 11332 11479 11547 11636 11713 11727 11764 11777 11799
#include <stdio.h>
int main()
{
int month[2], day[2], year[2], i, t, age;
scanf("%d", &t);
for (i = 1; i <= t; ++i)
{
using UnityEditor;
using System.Reflection;
using System;
public static class ConsoleUtilitiesEditor
{
[MenuItem("Tools/Clear Console %#c")] // Cmd/Ctrl + Shift + C
private static void ClearConsoleMenuItem()
{
ClearConsole();
@louisvalet
louisvalet / Colors
Last active November 17, 2020 09:35
I heard you needed colors
using UnityEngine;
public static class Colors
{
public static readonly Color AbsoluteZero = new Color32( 0, 72, 186, 255 );
public static readonly Color Acajou = new Color32( 76, 47, 39, 255 );
public static readonly Color AcidGreen = new Color32( 176, 191, 26, 255 );
public static readonly Color Aero = new Color32( 124, 185, 232, 255 );
public static readonly Color AeroBlue = new Color32( 201, 255, 229, 255 );
public static readonly Color AfricanViolet = new Color32( 178, 132, 190, 255 );
@abhinav1592
abhinav1592 / gist:4382110
Last active March 20, 2021 07:46
A simple Notepad using Java. I have used swing and awt.
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);
@MatthewBarker
MatthewBarker / Glow.js
Created July 29, 2015 12:44
Phaser glow filter
/*jslint white: true*/
/*global Phaser*/
/**
* Defines a glow filter for Web GL.
* @module
*/
Phaser.Filter.Glow = function (game) {
'use strict';
@NovaSurfer
NovaSurfer / FadeInOut.cs
Last active February 5, 2022 15:59
Unity3D screen fading script (using new UI)
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using UnityEngine.SceneManagement;
public class ScreenFader : MonoBehaviour
{
public Image FadeImg;
public float fadeSpeed = 1.5f;
public bool sceneStarting = true;
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
using System.Collections.Generic;
using System.IO;
// Scene selection