Skip to content

Instantly share code, notes, and snippets.

View tofr's full-sized avatar
💭
mothership connection

topher mykolyk tofr

💭
mothership connection
View GitHub Profile
@tofr
tofr / copilot-risk-assessment.md
Created July 12, 2021 22:16 — forked from 0xabad1dea/copilot-risk-assessment.md
Risk Assessment of GitHub Copilot

Risk Assessment of GitHub Copilot

0xabad1dea, July 2021

this is a rough draft and may be updated with more examples

GitHub was kind enough to grant me swift access to the Copilot test phase despite me @'ing them several hundred times about ICE. I would like to examine it not in terms of productivity, but security. How risky is it to allow an AI to write some or all of your code?

Ultimately, a human being must take responsibility for every line of code that is committed. AI should not be used for "responsibility washing." However, Copilot is a tool, and workers need their tools to be reliable. A carpenter doesn't have to

@tofr
tofr / gist:a3eb30b71f32b6e982e0e5b7e0f47e39
Last active July 15, 2020 14:20
DUOTASK: binary search trace
/**
~~~ The RSPB Special Trace-athon ~~~
YOUR MISSION:
Form a Dynamic Duo of Destiny or a Trio of Triump. Conjure team name portending greatness (TNPG).
Copypasta this into main method of your java sourcecode file containing methods linSearch and binSearch
(Boogle.java for almost all of you)
Verify it works.
(If any test calls do not yield expected outputs, there is some tuning to be done...
Probably best to just grab a working version for now.)
On KtS, with at least 1 tracing buddy, trace out each binSearch() call.
@tofr
tofr / config.py
Last active July 19, 2017 22:21
Google OAuth2 in Flask
GOOGLE_ID = "get from google dev console"
GOOGLE_SECRET = "get from google dev console"
GOOGLE_REDIRECT_URI = 'set at google dev console'
DEBUG = True
SECRET_KEY = 'this is used to sign encrypted session cookies'
@tofr
tofr / D3 Bar Chart.markdown
Created March 17, 2016 09:38
D3 Bar Chart

D3 Bar Chart

A minimal demonstration of how to create an HTML bar chart with D3. Fork this template to create your own chart.

A Pen by Mike Bostock on CodePen.

License.