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
from __future__ import division | |
import math | |
# user input fr number of levels to go down | |
nmlevels = int(raw_input("Enter number of levels: ")) | |
# number of levels program is currently on | |
currentlevel = 0 | |
#define e at level 0 | |
e = 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
#! /usr/bin/python3 | |
# Reddit Daily Programming Challenge 277 - Fake Coins | |
# The challenge input | |
challenge = """abcd efgh equal | |
abci efjk left | |
abij efgl equal | |
mnopqrs tuvwxyz equal""" | |
# Global variables |
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
#! /usr/bin/python3 | |
# Reddit Daily Programming Challenge 277 - Fake Coins | |
# The challenge input | |
challenge = """abcd efgh equal | |
abci efjk left | |
abij efgl equal | |
mnopqrs tuvwxyz equal""" | |
# Global variables |
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
plain = list('abcdefghijklmnopqrstuvwxyz .!@#$%^&*()_+|~,/<>?~|\'\:\=1234567890') | |
cipher = list('ZYXWVUTSRQPONMLKJIHGFEDCBA .!@#$%^&*()_+|~,/<>?~|\'\:\=1234567890') | |
answer = [] | |
atBash = input('What do you want to encode? => ').lower() | |
for i in atBash: | |
index = plain.index(i) | |
answer.append(cipher[int(index)]) |
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
# Daily Programmer 303 | |
hwv = input("Please enter h, w and v seperated by space > ").split(' ') | |
height,width,velocity = int(hwv[0]),int(hwv[1]),int(hwv[2]) | |
position = [0,height] | |
moves = 0 | |
bounces = 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPT6XKozeOYQB2HElFl6Wiw1HPloU/FhMlKif1zF/xeiWqfAaF/MCATggCwGusjNWRqiczldrO9jDjNWgY5Vq1ZtRLOX28hq72sUmLPGlnnKysE21J5xBcTgYEEzGr7tPdHxGS1LbU35AmTPnoeVJZ5KfYk2fjqgTZK4WnmBQ6VPTPiDoG093Dm3JbGaVlEorNE44lVmLbdbvbCs2Pb08xarcNoftVzKirYpeCo9gXyFCvETR08sT2wDW7FzkyotRo6nPfTrQQftpDdn3Fj1UD5nfK08f3nSBCEQwxvoXmClzgrvf/nc+SrIbLkmm2K0ZVd1f4s9755AOVgqiRxmoh apium@slegestor |
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
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x6f37fa83, isOwner false, <3f72fc6, 609a0a57>[count 0, qsz 0, owner <NULL>]]] | |
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326) | |
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297) | |
at java.lang.Thread.run(Thread.java:745) | |
Caused by: com.jogamp.opengl.GLException: AWT-EventQueue-0-SharedResourceRunner: Error making temp context(1) current: display 0x7f40800ebe30, context 0x7f40801d4fc0, drawable X11OnscreenGLXDrawable[Realized true, | |
Factory jogamp.opengl.x11.glx.X11GLXDrawableFactory@13194b59, | |
Handle 0x2400002, | |
Surface WrappedSurface[ displayHandle 0x7f40800ebe30 | |
, surfaceHandle 0x2400002 | |
, size 64x64 |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct card { | |
char suit[10]; | |
int value; | |
} card; | |
// hearts, clubs, spades, diamonds |
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
; tableSearch.asm | |
; | |
; Created: 21/07/2018 6:49:15 PM | |
; Author : Glenn Matthews | |
; | |
; Define here the variables | |
.def temp =r16 | |
.def small =r17 |
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
; | |
; ThinkingTask2.asm | |
; | |
; Created: 8/08/2018 12:41:57 PM | |
; Author : APIUM | |
;[pppp | |
; Define here the variables | |
.def inputval = r16 | |
.def outputval = r17 |
OlderNewer