This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define WIDTH 600 | |
#define HEIGHT 600 | |
#include <GLUT/glut.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <GLUT/glut.h> // glut (gl utility toolkit) basic windows functions, keyboard, mouse. | |
#include <stdio.h> // standard (I/O library) | |
#include <stdlib.h> // standard library (set of standard C functions | |
#include <math.h> // Math library (Higher math functions ) | |
#include <string.h> | |
// lighting | |
GLfloat LightAmbient[]= { 0.5f, 0.5f, 0.5f, 1.0f }; | |
GLfloat LightDiffuse[]= { 0.5f, 0.5f, 0.5f, 1.0f }; | |
GLfloat LightPosition[]= { 5.0f, 25.0f, 5.0f, 1.0f }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# XOR of first N natural no.s | |
N = int(input()) | |
if (N % 2) == 0: | |
if (N % 4) == 0: | |
r = N | |
else: | |
r = N+1 | |
else: | |
if (N % 4) == 1: | |
r = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
data = [1,2,3,4,5] | |
df = pd.DataFrame(data) | |
print(df.to_csv(index=False,header=False,line_terminator=',')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
|-- Seen | |
| |-- 300 Rise of an Empire (2014) | |
| | |-- 300.Rise.of.an.Empire.2014.1080p.BluRay.x264.YIFY.en.srt | |
| | |-- 300.Rise.of.an.Empire.2014.1080p.BluRay.x264.YIFY.mp4 | |
| | |-- Thumbs.db | |
| | `-- WWW.YIFY-TORRENTS.COM.jpg | |
| |-- 500 Days Of Summer (2009) | |
| | |-- 500 Days Of Summer.2009.720p.BDRip.x264-VLiS.en.srt | |
| | |-- 500 Days Of Summer.2009.720p.BDRip.x264-VLiS.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <GL/glut.h> | |
static float zoom_factor = 0.5; | |
float ver[8][3] = | |
{ | |
{-0.5 , -0.5 , 0.5} , | |
{-0.5 , 0.5 , 0.5} , | |
{0.5 , 0.5 , 0.5} , | |
{0.5 , -0.5 , 0.5} , |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define GLUT_DISABLE_ATEXIT_HACK | |
#include <windows.h> | |
#include <gl\glut.h> | |
#include <iostream> | |
float x1=-2.0, x2=2.0; | |
static int flag=1; | |
static int i=0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define GLUT_DISABLE_ATEXIT_HACK | |
#include <windows.h> | |
#include <iostream> | |
#include <gl\glut.h> | |
// Initial Position of the Ball | |
float x_position = 0.0; | |
float y_position = 0.0; | |
// Radius of ball |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
|-- 100_Hits_Love_Happy_Valentines_Day | |
| |-- 001 Nat King Cole - Love.mp3 | |
| |-- 002 Paul Anka - Diana (Remastered).mp3 | |
| |-- 003 Shirley Bassey, Джордж Гершвин - S' Wonderfull (Remastered).mp3 | |
| |-- 004 Frank Sinatra - Come Fly With Me.mp3 | |
| |-- 005 Dean Martin - Volare (Remastered).mp3 | |
| |-- 006 Elvis Presley - Lover Doll.mp3 | |
| |-- 007 Carla Thomas - Gee Whiz, Look In His Eyes (Remastered).mp3 | |
| |-- 008 Timi Yuro - Only You.mp3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#FTP | |
sudo apt-get install vsftpd | |
sudo service vsftpd start | |
ftp localhost | |
#Den receive data by get -> get filename |
NewerOlder