Skip to content

Instantly share code, notes, and snippets.

View madelinecr's full-sized avatar
:octocat:
Octocatting

Finn madelinecr

:octocat:
Octocatting
View GitHub Profile
@madelinecr
madelinecr / ContentView.swift
Last active April 20, 2022 00:27
DIT Time Date Extension w/ SwiftUI Display
//
// ContentView.swift
// Decimal Time
//
// Created by Madeline Cray on 4/16/22.
//
import SwiftUI
let DESECS_IN_FRACTIONAL_MS = 0.864;
@madelinecr
madelinecr / keybase.md
Created January 28, 2020 13:52
keybase.md

Keybase proof

I hereby claim:

  • I am averyada on github.
  • I am averyp (https://keybase.io/averyp) on keybase.
  • I have a public key ASAPd8qcJXOtWmw0VQAlUI2O5NlkymRV83Y2KykzkWPg_Qo

To claim this, I am signing this object:

@madelinecr
madelinecr / smb.conf
Created July 20, 2017 00:06
smb.conf partial
[homes]
comment = Home Directories
browseable = yes
CC=clang++
CFLAGS=-g -Wall -pedantic -O0 -std=c++11
# Project configuration
SRCDIR=src
ODIR=build
LIBS=math render scene
SOURCES=math/ray.cpp math/vec3.cpp \
render/bitmap.cpp \
scene/camera.cpp scene/color.cpp scene/object.cpp scene/primitives.cpp \
[datastore]
comment = Data
path = /mnt/datastore
valid users = @smbusers
read only = no
locking = no
guest ok = yes
directory mask = 0755
create mask = 0700
writable = yes
73.48.148.111 - - [10/Jul/2014:02:10:58 -0700] "GET / HTTP/1.1" 304 210 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0"
10.0.5.7 - - [10/Jul/2014:02:11:05 -0700] "GET / HTTP/1.1" 304 210 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0"
10.0.5.7 - - [10/Jul/2014:02:11:05 -0700] "GET /kitty.jpg HTTP/1.1" 304 188 "http://local.ens.ae/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0"
24.7.166.35 - - [10/Jul/2014:02:11:15 -0700] "GET / HTTP/1.1" 304 210 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"
73.48.148.111 - - [10/Jul/2014:02:12:19 -0700] "GET / HTTP/1.1" 304 210 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0"
66.220.158.118 - - [10/Jul/2014:02:13:02 -0700] "GET / HTTP/1.1" 206 1349 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)"
24.7.166.35 - - [10/Jul/2014:02:13:02 -0700] "GET / HTTP/1.1" 304 210 "-" "Mozilla/
@madelinecr
madelinecr / gist:94d98fcf7ac61313d398
Created July 6, 2014 10:32
Git-core and build-essential
==> default: Reading state information...
==> default: git-core is already the newest version.
==> default: zlib1g-dev is already the newest version.
==> default: The following extra packages will be installed:
==> default: dpkg-dev fakeroot g++ g++-4.6 libalgorithm-diff-perl
==> default: libalgorithm-diff-xs-perl libalgorithm-merge-perl libcurl3 libdpkg-perl
==> default: libpq5 libstdc++6-4.6-dev make postgresql-9.1 postgresql-client-9.1
==> default: postgresql-client-common postgresql-common ssl-cert
==> default: Suggested packages:
==> default: debian-keyring g++-multilib g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg
@madelinecr
madelinecr / gist:2861ab1bf901b50b7354
Last active August 29, 2015 14:02
PostPublisher.rb
#!/usr/bin/env ruby
require 'psych'
module Jekyll
class PostPublisher < Generator
safe true
def replace(filepath, regex, *args, &block)
content = File.read(filepath).gsub(regex, *args, &block)
@madelinecr
madelinecr / fizz.rs
Last active August 29, 2015 14:02
Fizzbuzz in Rust
fn three_divides(num: int) -> bool {
num % 3 == 0
}
fn five_divides(num: int) -> bool {
num % 5 == 0
}
fn fifteen_divides(num: int) -> bool {
num % 15 == 0
sort(workers.begin(), workers.end());
for(vector<Employee*>::iterator i = workers.begin(); i != workers.end(); i++) {
cout << "Employee is " << (*i)->grade << " - " << (*i)->name << endl;
}