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
void main() | |
{ | |
import std.stdio : writeln; | |
int[] arr = [1, 6, 23, 678, 212, 5, 96, 52]; | |
int i = 0; | |
while (i < arr) | |
{ |
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 std.stdio; | |
// Driver code | |
void main() | |
{ | |
writeln("Hello, World"); | |
} |
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
var firstNum = window.prompt("First number: "); | |
number1 = parseInt(firstNum); | |
var secondNum = window.prompt("Second number: "); | |
number2 = parseInt(secondNum); | |
alert("Press OK to see results."); |
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
\documentclass[a4paper, 12pt]{article} | |
\begin{document} | |
\title{Sample Data} | |
\author{SmashedFrenzy16} | |
\date{\today} | |
\maketitle | |
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
fav.crisps <- c(30, 21, 10, 13) | |
barplot(fav.crisps, | |
main = "People's Favorite Flavour Of Crisps", | |
xlab = "Number Of Students", | |
ylab = "Crisps Flavour", | |
names.arg = c("Plain", "Chilli", "Cheese + Onion", "Lime"), | |
col = "red", | |
horiz = TRUE) |
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
def towerOfHanoi(n, fromRod, toRod, auxRod): | |
if n ==0: | |
return | |
towerOfHanoi(n-1, fromRod, auxRod, toRod) | |
print("Move disk",n,"From rod",fromRod,"to rod",toRod) | |
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
#!/bin/bash | |
echo "What is your name?" | |
read USER_NAME | |
echo "Hi, $USER_NAME!" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> JS Date And Time </title> | |
</head> |
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
#!/bin/bash | |
clear | |
echo "enter 2 strings: " | |
read "str1" | |
read "str2" | |
str3=`echo $str1 $str2` |
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 string | |
import random | |
letters = list(string.ascii_letters) | |
numbers = list(string.digits) | |
special_characters = list("!£$%^&*()@#") | |
characters = (string.ascii_letters, string.digits, special_characters, "!£$%^&*()@#") | |
def random_password(): |
NewerOlder