Skip to content

Instantly share code, notes, and snippets.

View pythagoraskitty's full-sized avatar

Camillia Smith Barnes pythagoraskitty

View GitHub Profile
@lukaskonarovsky
lukaskonarovsky / dynamicarray.cpp
Created April 6, 2009 21:33
C++ dynamic array implementation
#include "dynamicarray.h"
using namespace std;
DynamicArray::DynamicArray() {
DynamicArray::DynamicArray(5);
}
DynamicArray::DynamicArray(int initSize) {
size = initSize;
@deekayen
deekayen / 1-1000.txt
Last active September 30, 2025 12:09
1,000 most common US English words
the
of
to
and
a
in
is
it
you
that
@TylerFisher
TylerFisher / hosting-on-github.md
Last active October 7, 2025 14:02
Basic steps for hosting on Github

Hey there, apparently people are still using this Gist from 2013! It's out of date! Consult the Github docs.

Steps for Hosting a Website on GitHub

  1. Create a GitHub account on github.com.
  2. Download either [GitHub for Mac][1] or [GitHub for Windows][2], depending on your operating system. Open the app and log in using the account you just created.
  3. (On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
  4. Create a new repository in your GitHub application. Name it your-username.github.io. The name is very important. Note the folder that GitHub is saving the repository to. Make sure the "Push to GitHub?" box is checked.
  5. Move your website's files into the folder that GitHub just created when you made the repository. IMPORTANT: Your homepage HTML file must be called "index.html", and it must exist in the top-level
@deanrather
deanrather / Github Web Hosting.md
Last active October 15, 2025 10:42
Free Hosting on GitHub

Free Hosting on GitHub

This guide will take you from zero webserver knowledge, to having your own free site hosted on GitHub. The only non-free bit is registering a domain name, which can be as cheap as $5/year.

This guide uses CrazyDomains as the Registrar, FreeDNS as the DNS, and GitHub as the Webserver.


1) Domain Registration and Setup

@marcusficner
marcusficner / compile.sh
Created March 21, 2016 08:34
Compile script for C+11 in CodeRunner
#!/bin/bash
# This is a CodeRunner compile script. Compile scripts are used to compile
# code before being run using the run command specified in CodeRunner
# preferences. This script is invoked with the following properties:
#
# Current directory: The directory of the source file being run
#
# Arguments $1-$n: User-defined compile flags
#
# Environment: $CR_FILENAME Filename of the source file being run
@divinity76
divinity76 / collisions.php
Last active December 6, 2023 01:14
hash collisions
<?php
declare(strict_types = 1);
ini_set("memory_limit", "-1");
$algo = "xxh64";
$dictionary = "crackstation.txt";
// MODE_dict_in_ram_hashes_in_ram($algo, $file);
MODE_dict_on_disk_hash_on_sqlite($algo, $dictionary);
@ufologist
ufologist / jquery-sanitize-html.html
Last active March 26, 2023 00:07 — forked from kaznum/gist:3810258
sanitize HTML with jQuery prevent Application from XSS attacks
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>Sanitize HTML with jQuery</title>
</head>
<body>
<h1>Sanitize HTML with jQuery</h1>
<h2>HTML Code</h2>
@mlassoff
mlassoff / fingerpaint.html
Created April 14, 2017 02:04
Created during LearnToProgram.tv's hack night on 4/13/2017
<!DOCTYPE html>
<html>
<head>
<title>Fingerpaint</title>
<style>
h1
{
font-family: Arial;
}
canvas
@jioo
jioo / share-git-stash.md
Last active August 10, 2025 15:35
How to export stash as a file, and apply it to another computer

Stash current changes

  • git > Stash > Stash (Include Untracked)

Create stash as patch

git stash show "stash@{0}" -p > changes.patch

Apply patch

// ==UserScript==
// @name @chaoticvibing Twitter Blue Nerd - twitter.com
// @namespace Violentmonkey Scripts
// @match *://*.twitter.com/*
// @match *://*.x.com/*
// @grant none
// @version 1.9.2
// @author @chaoticvibing - GH @busybox11
// @description 11/9/2022, 11:45:28 PM
// @updateURL https://gist.githubusercontent.com/busybox11/53c76f57a577a47a19fab649a76f18e3/raw