Skip to content

Instantly share code, notes, and snippets.

View bobbywilson0's full-sized avatar

Bobby Wilson bobbywilson0

View GitHub Profile
@bobbywilson0
bobbywilson0 / fetch.js
Created July 4, 2024 21:41
fetch who's hiring posts from hn api
import fetch from "node-fetch";
import * as fs from "node:fs/promises";
const BASE_URL = "https://hacker-news.firebaseio.com/v0";
const fetchData = async () => {
try {
const response = await fetch(`${BASE_URL}/user/whoishiring.json`);
const data = await response.json();
{
"totalItems": 193,
"success": true,
"errors": [],
"results": [
{
"groupId": 2098,
"name": "Rivals of Ixalan",
"abbreviation": "RIX",
"supplemental": false,
@bobbywilson0
bobbywilson0 / index.html
Last active June 15, 2017 17:57
ask science chart
<html>
<head>
<style>
.chart rect {
fill: steelblue;
}
.chart rect:hover {
fill: turquoise;
}
SEQUENCE(2 elem)
SEQUENCE(2 elem)
OBJECT IDENTIFIER 1.2.840.113549.1.1.1
NULL
BIT STRING(1 elem)
SEQUENCE(2 elem)
INTEGER(2048 bit) 232117647064925009559270970593436020935964197458984076490441477689370…
INTEGER 65537
{"currentPage":1,"numberOfPages":1,"totalResults":20,"data":[{"id":"e2agAL","name":"Main Brewery","streetAddress":"214 E. Martin Street","locality":"Raleigh","region":"North Carolina","postalCode":"27601","phone":"(919) 829-0214","latitude":35.776817,"longitude":-78.635987,"isPrimary":"Y","inPlanning":"N","isClosed":"Y","openToPublic":"N","locationType":"brewpub","locationTypeDisplay":"Brewpub","countryIsoCode":"US","yearOpened":"1989","yearClosed":"2004","status":"verified","statusDisplay":"Verified","createDate":"2012-01-03 02:41:56","updateDate":"2014-07-23 19:11:34","breweryId":"r01rHx","brewery":{"id":"r01rHx","name":"Greenshields Brewery and Pub","website":"http:\/\/www.greenshields.com\/","established":"1989","isOrganic":"N","images":{"icon":"https:\/\/s3.amazonaws.com\/brewerydbapi\/brewery\/r01rHx\/upload_SnpMTI-icon.png","medium":"https:\/\/s3.amazonaws.com\/brewerydbapi\/brewery\/r01rHx\/upload_SnpMTI-medium.png","large":"https:\/\/s3.amazonaws.com\/brewerydbapi\/brewery\/r01rHx\/upload_SnpMTI-larg
Bobbys-MacBook-Pro:figwheel-error bobbywilson1$ lein figwheel
Exception in thread "main" java.util.regex.PatternSyntaxException: Unknown inline modifier near index 2
(?U)^[\p{Alpha}_$]
^, compiling:(cljs/util.clj:143:33)
at clojure.lang.Compiler.load(Compiler.java:7244)
at clojure.lang.RT.loadResourceScript(RT.java:371)
at clojure.lang.RT.loadResourceScript(RT.java:362)
at clojure.lang.RT.load(RT.java:446)
at clojure.lang.RT.load(RT.java:412)
at clojure.core$load$fn__5427.invoke(core.clj:5862)
{"kind": "Listing", "data": {"modhash": "u9d7i9xlrh94c2c567cfc0746817dc51e96e836af3db49e985", "children": [{"kind": "t3", "data": {"domain": "kirokaze.deviantart.com", "banned_by": null, "media_embed": {}, "subreddit": "PixelArt", "selftext_html": null, "selftext": "", "likes": null, "user_reports": [], "secure_media": null, "link_flair_text": null, "id": "33dghm", "gilded": 0, "archived": false, "clicked": false, "report_reasons": null, "author": "kirokaze", "num_comments": 2, "score": 25, "approved_by": null, "over_18": false, "hidden": false, "thumbnail": "http://a.thumbs.redditmedia.com/1ec4-Yfh1t2oNycuI98Jou8UH3GbYbdS6dn91k04UL4.jpg", "subreddit_id": "t5_2ql09", "edited": false, "link_flair_css_class": null, "author_flair_css_class": null, "downs": 0, "secure_media_embed": {}, "saved": false, "stickied": false, "is_self": false, "permalink": "/r/PixelArt/comments/33dghm/oc_to_slay_a_warrior/", "name": "t3_33dghm", "created": 1429664845.0, "url": "http://kirokaze.deviantart.com/art/To-slay-a-warrior-52830
> phantomjs vendor/test/unit-test.js vendor/test/phantomjs-shims.js target/testable.js
PHANTOM: Phantom(name = "")
Loading URL: vendor/test/phantomjs-shims.js
Running test.
ReferenceError: Can't find variable: test
phantomjs://webpage.evaluate():2
phantomjs://webpage.evaluate():3
phantomjs://webpage.evaluate():3
*** Test failed! ***
ClojureScript:dodgeball.core> (unit? 1 5 :balls)
{:id 1, :coords {:x 1, :y 5}}
ClojureScript:dodgeball.core> (false? (unit? 1 5 :balls))
false
ClojureScript:dodgeball.core> (true? (unit? 1 5 :balls))
false
(defonce app-state (atom {:balls [ 1 3 5 7 9]}))
(defn square-view [n owner]
(reify
om/IRender
(render [this]
(dom/td nil n))))
(defn row-view [data owner]