Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
use MIME::Base64 ();
sub trim { my $s = shift; $s =~ s/^\s+|\s+$//g; return $s }; # remove white space
my $a = ""; # variable that gets appended
my $result = "";
print "You're doing a thing...\n";
my $input = <STDIN>;
$input = trim($input);
if ($input eq (chr(5156 - 5035) . chr(-4615 - -4716) . chr(3162 - 3047))) { # 121, 101, 115 yes
$a = $a . MIME::Base64::decode("R0lGODlh2AEoA+f/ABQPDQ8RDxITGyASFBQVHBQWExcVGBsUGBkVFB8TGRwWEB4UHhEYHhQYGhgYEBYYFhgYHxgaFxcbHRwaHSAZHB4aGSYYHhocGh0dFiEcFiAbJScbFx0eHBcgHhweJhsgFxYgJyQhISEiICMiGychGyggIikoJykpIi0oIiwpLiYsJiMsMCgqOCwsIDQpJzgpITspGjIrITItGzAvLTIvKTs0MTU2MU4xIFUxFEo1Hjk3Pkg1JjA6Pzo5LUI3LkA5J0I7Nzw9Nz5FPkZDPl0/LGU/KUJGTU9GL0hHOlhELlREPE5GO01HNlJFQldFOGJEI0ZNRU5LRYFBI3ZJJ1VSTXdMM2hRPHJQKnBQMGxRNVBXUGVSRFpVSVBWXVxVRGBVO2BTT2NTSlxZU5BTO4RaRIhaOnhfSnxfQ3RgUn9fPoJfOG9hXXBjSXNhWGtkUmdkX2pkWF9nX6BaOV5semZrb5VkO6FhO6FiSpdoSYBuZY1tS5BtRIhuWH9xVoxuUXpyYIRvYXlyZn5wbHRzbbJyVql3VqF7Tat4Tpt7YZR8cp98Wo9/b6B9VX+DgIyAeHSFjpGAa5WAYYSDd4iBgbqHYbCMY66MbKCOhqKPebONXaWRY5OSkKSQcpqSgJe
#!/usr/bin/python
# coding: utf-8
#Testing printing out runes for Cicada 3301
message = """\u16cb\u16bb\u16d6\u16a9\u16b7\u16d7\u16e1\u16a0
\u16cb\u16a3\u16d6\u16dd\u16b3\u16b3\u16a6\u16c2
\u16b7\u16ab\u16a0\u16c2\u16df"""
table = [
#!/usr/bin/python
# Used on Pyton 2.7.10
# You need Image from Python Image Library (PIL) and stepic packages
import stepic
from PIL import Image
img = Image.open("sample-graphic.jpg")
img.show()
stegImg = stepic.encode(img, "Some super secret infoz")
stegImg.save("steg.png", "PNG")
/*
SentenceBuilder.java
Write a Java program called SentenceBuilder that takes words from the user
at the command line and constructs a sentence. Concatenate the words and
insert spaces to build a sentence.
Use a do-while loop and a sentinel to allow the user to tell the program
when they have finished entering words.
Output the sentence to the command line. Don’t include the sentinel in the sentence!
/*
Pig Latin Translator 1.0.2
User Enters a word after the prompt
and gets the "Pig Latin" version back at the
prompt.
Example Compilation and Run
Apoh:Documents apoh$ cc pigLatinTranslator.c -o pigLatin
Apoh:Documents apoh$ ./pigLatin
Please enter a word.
import java.util.Scanner;
public class Atm
{
public static void main(String[] args)
{
double balance = 100.00;
double withdrawalAmount;
double depositAmount;
boolean sentinelValue = true;
import java.util.Scanner;
public class Atm
{
public static void main(String[] args)
{
double balance = 100.00;
double withdrawalAmount;
double depositAmount;
/*
Pig Latin Translator 0.8.2
User Enters a word after the prompt
and gets the "Pig Latin" version back at the
prompt.
Example Compilation and Run
Apoh:Documents apoh$ cc pigLatinTranslator.c -o pigLatin
Apoh:Documents apoh$ ./pigLatin
Please enter a word.
/*
Pig Latin Translator 0.8
User Enters a word after the prompt
and gets the "Pig Latin" version back at the
prompt.
Example Compilation and Run
Apoh:Documents apoh$ cc pigLatinTranslator.c -o pigLatin
Apoh:Documents apoh$ ./pigLatin
/*
Pig Latin Translator 0.6
User Enters a word after the prompt
and gets the "Pig Latin" version back at the
prompt.
Compilation: #cc pigLatin.c -o pigLatinProgram
Execution: #./pigLatinProgram