Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Not an editor command: waaaaaaaa

Sinclair Target sinclairtarget

💭
Not an editor command: waaaaaaaa
View GitHub Profile
@sinclairtarget
sinclairtarget / fish.sim
Last active Oct 8, 2020
Simula Demonstration
View fish.sim
Simulation Begin
! We will use this as input to Normal() below ;
Integer seed;
! Utility method for logging messages along with the current simulation
time ;
Procedure log(message); Text message; Begin
OutFix(Time, 2, 0);
OutText(": " & message);
OutImage;
@sinclairtarget
sinclairtarget / 1-cat-pdp7.s
Last active Nov 22, 2020
cat through the ages
View 1-cat-pdp7.s
" cat
lac 017777 i " Load accumulator (AC) with argument count
sad d4 " Skip next if we have more than 4 words of args
jmp nofiles " Otherwise, jump to nofiles
lac 017777 " Load AC with address of args
tad d1 " Increment AC by 1, past argument count
tad d4 " Increment AC by 4, now AC points to first real arg
dac name " Save arg pointer from AC into 'name'
@sinclairtarget
sinclairtarget / bernoulli.c
Created Aug 17, 2018
Lovelace's Note G Program in C
View bernoulli.c
#include <stdio.h>
/*
* Calculates what Ada Lovelace labeled "B7", which today we would call the 8th
* Bernoulli number.
*/
int main(int argc, char* argv[])
{
// ------------------------------------------------------------------------
// Data
View Program.cs
using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Reflection;
using System.Runtime.InteropServices;
namespace dotnet_console
{
class Program
@sinclairtarget
sinclairtarget / bg_api.md
Last active Dec 1, 2017
BG API Request and Response
View bg_api.md

Client Lookup Endpoint

This endpoint takes a first name, last name, or nickname (or any combination of those) and returns a list of matching clients. You should use this endpoint to allow users of your app to search for a client.

Example 1

HTTP Request:

GET api.breakingground.org/clients/lookup?firstName="John"&lastName="Doe"&nickname="Red Cat"
View BasicGradient.shader
Shader "Custom/BasicGradient"
{
Properties
{
_TopColor ("Top Color", Color) = (1, 1, 1, 1)
_BottomColor ("Bottom Color", Color) = (1, 1, 1, 1)
_RampTex ("Ramp Texture", 2D) = "white" {}
}
SubShader
View tic_tac_toe.rb
require 'tic_tac_toe_cn'
game = Tic_Tac_Toe.new
puts "Starting Tic Tac Toe"
# part 1
puts "Player 1, choose X or 0"
player_one = gets.chomp
@sinclairtarget
sinclairtarget / hobbit.rb
Created Dec 5, 2015
Hobbit Game Code Now
View hobbit.rb
has_sword = false
has_ring = false
has_luck = false
puts "You have entered the dragon's lair!!!!"
puts "Do you have a sword? [yes/no]:"
answer = gets.chomp
if answer == "yes"
You can’t perform that action at this time.