This file contains hidden or 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 <iostream> | |
| #include <windows.h> | |
| #include <math.h> | |
| #include <time.h> | |
| #include <conio.h> | |
| using namespace std; | |
| void goToXY(int x, int y) { | |
| COORD coord = { x, y }; | |
| SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); |
This file contains hidden or 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
| #!/bin/bash | |
| # Date : (2014-10-20) | |
| # Distribution used to test : Arch Linux 64-bit | |
| # Author : RoninDusette | |
| # Licence : GPLv3 | |
| # PlayOnLinux: 4.2.8 | |
| [ "$PLAYONLINUX" = "" ] && exit 0 | |
| source "$PLAYONLINUX/lib/sources" |
This file contains hidden or 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
| /* | |
| * Name: Syed Owais Ali Chishti | |
| * Roll no: P14-6011 | |
| * Date: 2/3/2015 | |
| * Task: Implement the Playfair Cipher Algorithm as discussed in the class. | |
| */ | |
| #include <iostream> | |
| #include <string> | |
| #include <cstdlib> |
This file contains hidden or 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
| ''' | |
| 620031587 | |
| Net-Centric Computing Assignment | |
| Part A - RSA Encryption | |
| ''' | |
| import random | |
| ''' |
This file contains hidden or 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
| ; Print exponent if exponent greater than 10 | |
| ; positive and negative exponent | |
| Include Irvine32.inc | |
| ; Change value of number and see result | |
| .data | |
| divisor DWORD 10b | |
| ;number DWORD 1.5 |
This file contains hidden or 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
| ; Source: http://home.aubg.bg/students/TMG120/irvine/irvine/Examples/Lib16/Irvine16_Library/floatio.asm | |
| ; Floating Point IO Procedures (floatio.asm) | |
| COMMENT @ | |
| Authors: W. A. Barrett, San Jose State University, | |
| James Brink, Pacific Lutheran University | |
| Used by Permission (July 2005). |
This file contains hidden or 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
| // Database Number: Scale and Precision | |
| // Input: 123456.1234 | |
| // Output: scale 4, precision 6 | |
| function getScaleAndPrecision(x) { | |
| x = parseFloat(x); | |
| if (!x || isNaN(x)) return null; //NaN, undefined, null, 'abcd', ""... | |
| let parts = x.toString().split("."); | |
| if (parts.length > 2) return null; | |
| return { | |
| scale: parts[1] ? parts[1].length : 0, |
This file contains hidden or 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
| // Tracking cursor position in real-time without JavaScript | |
| // Demo: https://twitter.com/davywtf/status/1124146339259002881 | |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "strings" | |
| ) |
This file contains hidden or 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
| TITLE Keyboard Toggle Keys (Keybd.asm) | |
| INCLUDE Irvine32.inc | |
| INCLUDE Macros.inc | |
| INCLUDELIB user32.lib | |
| VK_LEFT EQU 000000025h | |
| VK_UP EQU 000000026h | |
| VK_RIGHT EQU 000000027h | |
| VK_DOWN EQU 000000028h |
This file contains hidden or 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
| /* | |
| Name: Syed Owais Ali Chishti | |
| Roll no: P14-6011 | |
| Task: Implement Fraction class such that it take input like | |
| 1/2, 4/5, 7/81 | |
| Then overload | |
| ARITHMETIC | |
| +, -, /, %, * | |
| ASSIGNMENT | |
| +=, -=, *=, /=, %= |
NewerOlder