Skip to content

Instantly share code, notes, and snippets.

View topherPedersen's full-sized avatar
💭
Rolling my katamari ball

Christopher Pedersen topherPedersen

💭
Rolling my katamari ball
View GitHub Profile
@topherPedersen
topherPedersen / repl_multiplayer_links.txt
Last active December 12, 2018 22:29
repl.it Multiplayer Links (for use with my students at theCoderSchool)
@topherPedersen
topherPedersen / learn_csharp_in_20_minutes.cs
Created December 21, 2018 22:56
Learn C# in 20 Minutes
using System;
class MainClass {
public static void Main (string[] args) {
// go here kiddo: https://gist.github.com/topherPedersen/bf5ca7969ca9d9120f159eadb854d27d
// Concept No. 1: FUNCTIONS & METHODS
Console.WriteLine("Console.WriteLine is a method. Methods do things.");
// Concept No. 2: VARIABLES
@topherPedersen
topherPedersen / learn.swift
Last active February 23, 2019 17:54
Learn Swift in 20 Minutes
// Concept No. 1: FUNCTIONS
print("Print is a \"Funtion\" You know something is a function typically when you see a pair of ()")
// Concept No. 2: VARIABLES
var myVariable: String = "Hi"
print(myVariable)
// Concept No. 3: ARRAYS
var myArray: Array<String> = ["Arrays", "are", "like", "variables", "but", "they", "contain", "many", "values"]
@topherPedersen
topherPedersen / learn_javascript_in_20_minutes.js
Last active June 27, 2019 21:24
Learn JavaScript in 20 Minutes
// Concept No. 1: Functions
console.log("hello, world");
// Concept No. 2: Variables
var myVariable = "Variables are containers which hold values.";
// Concept No. 3: Arrays
var myArray = [];
myArray[0] = "moo";
myArray[1] = "zoo";
@topherPedersen
topherPedersen / userinput.js
Created January 9, 2019 23:33
Command Line User Input in Node.js
// REFERENCE: https://flaviocopes.com/node-input-from-cli/
const readline = require('readline').createInterface({
input: process.stdin,
output: process.stdout
})
readline.question(`What's your name?`, (name) => {
console.log(`Hi ${name}!`)
readline.close()
@topherPedersen
topherPedersen / helloworld.html
Created January 10, 2019 00:33
Hello World in HTML, CSS, & JavaScript
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: red;
}
</style>
</head>
<body>
@topherPedersen
topherPedersen / link_2_python_the_hard_way.txt
Created January 10, 2019 01:26
Learn Python The Hard Way (Python 2.7 Version)
@topherPedersen
topherPedersen / coderSchoolLinks.txt
Last active January 26, 2019 19:14
theCoderSchool Links
@topherPedersen
topherPedersen / dialog.swift
Created January 18, 2019 00:37
Display an Alert Dialog in Swift/iOS
// REFERENCE (UIAlertViewController): https://developer.apple.com/documentation/uikit/uialertcontroller
let alert = UIAlertController(title: "", message: dialogMessage, preferredStyle: .alert)
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: "Default action"), style: .default, handler: { _ in
NSLog("The \"OK\" alert occured.")
}))
self.present(alert, animated: true, completion: nil)
@topherPedersen
topherPedersen / ginoCookieClicker.txt
Last active January 22, 2019 23:14
Gino Cookie Clicker Project
https://scratch.mit.edu/projects/279158784/
https://scratch.mit.edu/projects/279158784/fullscreen/