Skip to content

Instantly share code, notes, and snippets.

@btownrippleman
btownrippleman / index.html
Created August 4, 2022 22:35
React Resume
<script src='https://code.jquery.com/jquery-3.2.1.slim.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js'></script>
<script src='https://unpkg.com/react@16/umd/react.development.js'></script>
<script src='https://unpkg.com/react-dom@16/umd/react-dom.development.js'></script>
<div id="app"></div>
<script src = "./App.js"></script>
package main
import (
"fmt"
"time"
)
// parallelization := 4
@btownrippleman
btownrippleman / pocket_cube_enumeration.go
Created July 12, 2022 21:50
This code enumerates all possible configurations of a pocket cube rotating along each of the x, y and z axes rotating only in one direction.
package main
import (
"fmt"
"time"
)
// parallelization := 4
@btownrippleman
btownrippleman / palindromeChecker.html
Created January 4, 2021 06:38
this is html that checks if the text entered is a palindrome, it excludes anything that is neither a letter nor a number.
<!DOCTYPE=html>
<p>enter text and press button to check if it is a palindrome</p>
<input id="palcheck">
</input>
<button id="myBtn" onclick="getStatement()">Button</button>
<h1 id="output"></h1>
<script type="text/javascript">
/**
* @param {string} s
@btownrippleman
btownrippleman / CheckoutForm.js
Created June 25, 2020 23:58
this allows you now to post to your python server, specifically in useEffect() in the fetch function, now you just need to modify whatever is inside fetch
import React, { useEffect, useState } from "react";
import { CardElement, useStripe, useElements } from "@stripe/react-stripe-js";
import "./CheckoutForm.css";
import api from "../api";
export default function CheckoutForm() {
const [amount, setAmount] = useState(0);
const [currency, setCurrency] = useState("");
const [clientSecret, setClientSecret] = useState(null);
import cherrypy
import random
import string
import json
import os
class HelloWorld(object):
@cherrypy.expose
import random
class Solution:
global recursion
recursion = 0
def is_full(self,arr):
for i in arr:
for j in i:
if j == '.':
return False
@btownrippleman
btownrippleman / index.html
Last active March 13, 2020 21:14
React List Grades App
<div>
<div class="row">
<div class="col"></div>
<div class="col-10" id="container" class="container"></div>
<div class="col">
</div>
</div>
</div>
@btownrippleman
btownrippleman / index.html
Created March 13, 2020 01:34
React Contacts List App
<div>
<div class="row">
<div class="col"></div>
<div class="col-10" id="container" class="container"></div>
<div class="col">
</div>
</div>
</div>
@btownrippleman
btownrippleman / Main.java
Created February 26, 2020 15:19
javafx code for basic login
package application;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.geometry.Pos;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.Button;