Skip to content

Instantly share code, notes, and snippets.

View braebo's full-sized avatar
💭
🔬

Braden Wiggins braebo

💭
🔬
View GitHub Profile
@ghostdevv
ghostdevv / nimachan.md
Last active August 3, 2021 02:59
Nimachan
  1. Open discord console with ctrl + shift + i
  2. Click to console tab
  3. copy and paste the below script in

Script:

(()=>{const imageConfig={from:'https://cdn.discordapp.com/avatars/105280068598644736/a8d125774c2d58101b269acc27117362',to:'https://cdn.discordapp.com/attachments/757960538864091256/871398065871933490/Nimachan.png'};const change=()=>{console.log('Nimachan 3000 Running...');const images=()=>[...document.body.getElementsByTagName('img')].filter((i)=>i.src.startsWith(imageConfig.from)).map((image)=>(image.src=imageConfig.to));const text=()=>[...document.body.getElementsByTagName('span')].filter((span)=>span.innerHTML=='Nimajneb').map((span)=>(span.innerHTML='Nimachan'));text();images();console.log('Nimachan done')};setInterval(change,1000)})();

unminified:

@joshnuss
joshnuss / httpStore.js
Last active October 11, 2023 11:29
A Svelte store backed by HTTP
import { writable } from 'svelte/store'
// returns a store with HTTP access functions for get, post, patch, delete
// anytime an HTTP request is made, the store is updated and all subscribers are notified.
export default function(initial) {
// create the underlying store
const store = writable(initial)
// define a request function that will do `fetch` and update store when request finishes
store.request = async (method, url, params=null) => {
@MichaelCurrin
MichaelCurrin / README.md
Last active July 13, 2024 16:06
GitHub GraphQL - Get files in a repository

Get GitHub Files

Get the metadata and content of all files in a given GitHub repo using the GraphQL API

You might want to get a tree summary of files in a repo without downloading the repo, or maybe you want to lookup the contents of a file again without download the whole repo.

The approach here is to query data from GitHub using the Github V4 GraphQL API.

About the query

@eh-dub
eh-dub / index.d.ts
Last active June 10, 2021 16:45
Sapper + Svelte + Typescript
// in $PROJECT_ROOT/typings/@sapper
declare module '@sapper/app' {
// from sapper/runtime/src/app/types.ts
// sapper doesn't export its types yet
interface Redirect {
statusCode: number
location: string
}
// end
@iannase
iannase / soundscraper.py
Created April 8, 2018 22:13
Python web scraper that gets the new / top 50 charts, also allows you to play tracks using the selenium browser
from selenium import webdriver
import requests
import bs4
import os
# new, top, or mix url
top_url = "https://soundcloud.com/charts/top"
new_url = "https://soundcloud.com/charts/new"
track_url = "https://soundcloud.com/search/sounds?q="
artist_url = "https://soundcloud.com/search/people?q="
@robinrendle
robinrendle / reset.css
Last active July 24, 2021 01:20
A CSS reset with sane defaults
/*Box sizing (the nuclear option) */
*, *:before, *:after {
-ms-box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing:border-box;
box-sizing: border-box;
}
/* Fix font rendering defaults */
html, button {