Skip to content

Instantly share code, notes, and snippets.

@joeljackson
joeljackson / synthetic_data.csv
Created February 11, 2025 05:27
Synthetic Data
class feature1 feature2 feature3
A 0 0 0
A 1 1 1
C 0 0 1
A 0 0 0
A 1 0 1
B 1 1 0
A 1 1 1
A 1 1 1
A 1 0 0
@joeljackson
joeljackson / linear-function.csv
Created January 22, 2025 03:08
Linear Function For ML
Output Input
-6.548969828 -1.032646552
-31.77926802 -17.85284534
23.63505586 19.09003724
-7.52670886 -1.684472573
10.56576661 10.37717774
-3.526789566 0.9821402896
-15.92085115 -7.280567434
-29.85787046 -16.57191364
-11.99188097 -4.661253977
@joeljackson
joeljackson / TestingForML
Last active January 22, 2025 06:34
TestML-jj
Output,Input
3.59,3.82
6.27,6.83
6.57,6.01
7.00,0.29
2.13,2.43
2.98,3.42
2.12,2.29
6.20,5.50
3.88,7.80
@joeljackson
joeljackson / jj-training.csv
Last active January 20, 2025 23:16
Silly Training File
Class A B C D
1 1 0 1 0
0 0 0 0 1
0 0 1 0 1
0 0 0 0 0
0 0 0 1 0
0 1 1 1 1
0 1 1 0 0
1 0 1 1 0
0 0 1 0 1
@joeljackson
joeljackson / keybase.md
Created October 26, 2018 17:40
keybase.md

Keybase proof

I hereby claim:

  • I am joeljackson on github.
  • I am joeljackson (https://keybase.io/joeljackson) on keybase.
  • I have a public key ASCgag6zvmeVWEMS1_TT045l0SVoIQ-DzkmveQPVEIQOAQo

To claim this, I am signing this object:

<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
<channel>
<title>
Our meals this week
</title>
<link>
https://www.eatlessme.at
</link>
<description>
Here our the meatless meals we're serving this week.
@joeljackson
joeljackson / test.rss
Last active March 14, 2018 16:24
Test RSS feed
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
<channel>
<title>Stories from NPR</title>
<link>https://www.npr.org</link>
<description>Assorted stories from NPR</description>
<language>en</language>
<copyright>Copyright 2018 NPR - For Personal Use Only</copyright>
<generator>NPR API RSS Generator 0.94</generator>
<lastBuildDate>Mon, 12 Mar 2018 21:00:36 -0400</lastBuildDate>
<image>
@joeljackson
joeljackson / file.js
Created November 14, 2016 19:42
country_and_state_selector.js
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
window.Honest || (window.Honest = {});
Honest.CountryAndStateSelect = (function() {
CountryAndStateSelect.prototype.DEFAULT_COUNTRY = "United States";
CountryAndStateSelect.prototype.DEFAULT_LABEL = "State";
@joeljackson
joeljackson / response.json
Created June 24, 2016 19:21
response.json
{
"content": {
"bundle_benefits_image": {
"id": 32079,
"type": "image",
"platforms": {
"touch": {
"image": {
"id": 7856,
"url": "https://staging.thcdn.co/uploads/media/file/000/007/856/tSibLgrr.png",
def self.create_csv
db = Rails.application.config.database_configuration[Rails.env]
db = db['reporting'] if Rails.env == 'production'
username = db["username"]
host = db["host"]
database = db["database"]
password = db["password"]
port = db["port"]
all_active_newsletters = Newsletter.where('display = 1 AND exacttarget_pref_name IS NOT NULL')