Skip to content

Instantly share code, notes, and snippets.

View tcd's full-sized avatar
📜
Edit status

Clay Dunston tcd

📜
Edit status
  • Birmingham, AL
View GitHub Profile
@juanbrujo
juanbrujo / PlayStationBIOSFilesNAEUJP.md
Last active May 1, 2024 13:35
Files for PlayStation BIOS Files NA-EU-JP
@aseroff
aseroff / yard_customization.md
Last active April 27, 2023 18:48
YARD customization for Rails

So you're running a Rails application and want to spruce up your YARD documentation. Here's the guide I wish I had.

Step 0: Plugin

Add yard-activerecord and yard-activesupport-concern to your Gemfile, add --plugin activerecord and --plugin activesupport-concern to your .yardopts flags, and db/schema.rb to the end of your .yardopts sources. Your models' attributes and assocations should now be included in the documentation.

Step 1: CSS/JS

To modify your YARD template, create doc-src/templates/default/fulldoc/html, then add --template-path doc-src/templates to your project's .yardopts. You can now create a doc-src/templates/default/fulldoc/html/css/common.css and the styles will be included (but overwrites need to be !important).

@joshuadanpeterson
joshuadanpeterson / guitar_tabs_template.txt
Last active April 29, 2024 19:13
[Guitar Tabs Template] Plaintext guitar tab template #music #txt
# Guitar Tabs Template
# Created by: Ultimate Guitar
# Source URL: https://www.ultimate-guitar.com/lessons/for_beginners/guitar_tabs_template.html
-----------------------------------------------------------------
SONG NAME - Band Name
-----------------------------------------------------------------
Tabbed by:
Email:
@aaronsteers
aaronsteers / Sample Dark Theme.json
Last active January 5, 2023 22:26
Dark and Light Power BI Theme Files (Scroll down to view the light theme)
{
"name": "Sample Dark Theme",
"background": "#000000",
"backgroundLight": "#9b9b9b",
"backgroundNeutral": "#535353",
"foreground": "#ffffff",
"foregroundNeutralSecondary": "#ffffff",
"foregroundNeutralTertiary": "#ffffff",
"tableAccent": "#0c62fb",
"dataColors": [
@stepney141
stepney141 / BookmarkAPI_en.md
Last active April 4, 2023 01:45
(DEPRECATED) Twitter Undocumented Endpoints for Bookmark
@castwide
castwide / rails.rb
Last active April 27, 2024 08:54
Enhance Rails Intellisense in Solargraph
# The following comments fill some of the gaps in Solargraph's understanding of
# Rails apps. Since they're all in YARD, they get mapped in Solargraph but
# ignored at runtime.
#
# You can put this file anywhere in the project, as long as it gets included in
# the workspace maps. It's recommended that you keep it in a standalone file
# instead of pasting it into an existing one.
#
# @!parse
# class ActionController::Base
@khalilgharbaoui
khalilgharbaoui / db.rake
Created February 3, 2019 21:29 — forked from hopsoft/db.rake
Rails rake tasks for dump & restore of PostgreSQL databases
# Original source: https://gist.github.com/hopsoft/56ba6f55fe48ad7f8b90
# Merged with: https://gist.github.com/kofronpi/37130f5ed670465b1fe2d170f754f8c6
# Benefits of: https://gist.github.com/e12e/e0c7d2cc1d30d18c8050b309a43450ac
# And fixes of: https://gist.github.com/joelvh/f50b8462611573cf9015e17d491a8a92
namespace :db do
desc 'Dumps the database to backups'
task dump: :environment do
dump_fmt = ensure_format(ENV['format'])
dump_sfx = suffix_for_format(dump_fmt)
backup_dir = backup_directory(Rails.env, create: true)
@SergioCC14
SergioCC14 / codewars.rb
Last active April 4, 2020 18:19
A Codewars API wrapper
# frozen_string_literal: true
require 'dotenv'
require 'net/http'
require 'json'
module Codewars
Dotenv.load('.env')
ENDPOINT = 'https://www.codewars.com/api/v1/'
API_KEY = ENV['CW_API_KEY']
@cecilemuller
cecilemuller / launch.json
Last active May 2, 2024 00:55
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Example",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
// npm install --save scrollreveal or install like you're used to doing it.
// It doesn't work well if there are multiple instances of ScrollReveal,
// so we have to create a module returning an instance:
// file ScrollReveal.js:
import ScrollReveal from 'scrollreveal'
export default ScrollReveal()
// Then in a component:
import React from 'react'
import sr from './ScrollReveal'