Skip to content

Instantly share code, notes, and snippets.

View enamcse's full-sized avatar
🎯
Focusing

Enamul Hassan enamcse

🎯
Focusing
  • SUST
  • Sylhet, Bangladesh
View GitHub Profile
@enamcse
enamcse / 100 The 3n 1 problem.c
Created May 1, 2012 22:00
UVa 100 113 10035 10055 10071 10079 10323 10346 10370
#include <stdio.h>
int cycle_length (int n);
int main()
{
int i, j, k, large, n, p, q;
while(scanf("%d %d", &i, &j) == 2)
{
@enamcse
enamcse / 10432 Polygon Inside A Circle.c
Created May 1, 2012 22:08
UVa 10432 10696 10783 10812 10921 10931 10970 11150 11172 11185
#include <stdio.h>
#include <math.h>
int main()
{
double n, r, area;
while (scanf("%lf %lf", &r, &n) == 2)
{
area = n * r * r * sin(2 * 3.141592653589793238462643383279 / n) / 2;
@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)
{
@enamcse
enamcse / 11805 Bafana Bafana.c
Created May 1, 2012 22:30
UVa 11805 11854 11877 11942 11984 12015 12149 12289
#include <stdio.h>
int main()
{
int t, k, n, p, i, j, ball;
scanf("%d", &t);
for (i = 0; i < t; ++i)
{
scanf("%d %d %d", &n, &k, &p);
@enamcse
enamcse / HostedNetwork.txt
Created June 9, 2016 11:52
Virtual Network Setup In Windows (Wifi)
File: config.cmd
----------------
set hostednetwork mode=allow ssid=<Network Name> key=<Password at least 8 digits>
File: start.cmd
---------------
netsh wlan start hostednetwork
File: stop.cmd
--------------
@enamcse
enamcse / git_push.md
Last active May 27, 2017 23:04
How to push something in a new repository.

After creating a repository in GitHub, we have to give the following command in git Bash to push the local repository to global.

git init
git add .
git commit -m "Commit Summary"
git remote add origin https://github.com/enamcse/******.git
git push -u origin master

If the last command does not work, we have to force update by the following command: