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/lua | |
-- LUA | |
-- | |
-- Tutorial https://www.tutorialspoint.com/lua/lua_standard_libraries.htm | |
-- Resources https://github.com/LewisJEllis/awesome-lua - resources | |
-- Packages https://luarocks.org/ | |
print("hello world") |
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/swift | |
import Foundation | |
class SomeClass { | |
let queue = DispatchQueue(label: "helloQ", | |
qos: .background, | |
attributes: .concurrent) | |
let group = DispatchGroup() | |
let lock = NSLock() |
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
/* | |
LWT.js | |
Simple Autocomplete for Last Week Tonight Tickets | |
https://www.lastweektickets.com | |
Paste into JS console to populate form | |
*/ |
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 "Set.h" | |
#include <string.h> | |
#include <assert.h> | |
#ifndef SET_SET_H | |
#define SET_SET_H | |
#include <stdio.h> | |
#include <stdlib.h> |
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> | |
#define LOWER 1 | |
#define LIMIT 12 | |
#define FORMAT "%5d" | |
#define MIN(a,b) (((a)<(b))?(a):(b)) | |
void nlPrint(){ | |
printf("\n"); |
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 <time.h> | |
#include <string.h> | |
int rand5(void){ | |
return (int)((rand() / (1.0 + RAND_MAX)) * 5) + 1; | |
} | |
int rand7(void){ |
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
// | |
// ViewController.m | |
// UpdatingCells | |
// | |
// Created by Joss Manger on 9/6/21. | |
// | |
#import "ViewController.h" | |
typedef NS_ENUM(NSInteger, JSYSectionType){ |
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
#!/bin/sh | |
#build for amazon linux | |
sudo docker run \ | |
--rm \ | |
--volume "$(pwd)/:/src" \ | |
--workdir "/src/" \ | |
swift:5.3.1-amazonlinux2 \ | |
swift build --product MyLambda -c release -Xswiftc -static-stdlib |
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
// Tachymeter | |
// Created by Jwam3 on 20/03/2021. | |
// | |
#include <stdio.h> | |
#include <time.h> | |
#define MAX_UNITS 3600 | |
void tachymeterOutline(const double* value, const double* time){ |
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
import Cocoa | |
//:Requirements | |
//1. Class that does jobs | |
//2. Keeps jobs in queue | |
//3. Perform Jobs in queue | |
//4. Can be torn down | |
//5. Can be switched between modes .anon, .loggedIn |
NewerOlder