| Area | File | Gap |
|---|---|---|
| Emancipation checklist | app/controllers/emancipations_controller.rb |
JSON API with 5+ action types (ADD/DELETE category/option, SET_OPTION) — zero tests |
| Placements CRUD | app/controllers/placements_controller.rb |
Full CRUD for youth placement records — only a pending placeholder spec |
| Admin user creation | app/services/create_casa_admin_service.rb |
Creates admin users with org setup — placeholder spec only |
| System admin creation | app/services/create_all_casa_admin_service.rb |
Creates system-wide admins — placeholder spec only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Feature Flags Timeline</title> | |
| <style> | |
| :root { | |
| --bg: #0d1117; | |
| --surface: #161b22; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :acts_as_paranoid do | |
| desc "Verify that all models using acts_as_paranoid have scopes on their unique indexes and validations" | |
| task lint: :environment do | |
| if Rails.env.test? | |
| currently_probably_buggy_classes_ignored = %w[ | |
| # too many things, redacted | |
| ] | |
| Zeitwerk::Loader.eager_load_all | |
| errors = [] | |
| allows_multiple_deleted = "(deleted_at IS NULL)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/user/bin/env ruby | |
| puts "hi" | |
| my_variable = "hi" | |
| puts my_variable | |
| x = 1 | |
| puts x | |
| puts x + 2 | |
| names = ["name", "naaaame"] | |
| puts names | |
| data = { name: "name" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 + 1 | |
| console.log("hello") | |
| myFunctionName = () => {console.log("hi")} | |
| myFunctionName() | |
| myFunctionName2 = (x) { return x + 1 } | |
| myFunctionName2(100) | |
| document.body.style.backgroundColor = "red" | |
| window.location.href |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Notes for a possible blog post about https://github.com/LessWrong2/Lesswrong2 by Oliver Habryka or whoever | |
| I may also use or publish some part of my notes | |
| The codebase has two big tech debts for historical reasons: https://www.mongodb.com/ and https://www.meteor.com/ | |
| Typescript is good and helps a lot to make a sturdy codebase. It has also been an essential part of moving away from meteor. | |
| http://vulcanjs.org/ is built on top of meteor, and in fact it helps LW move away from meteor, because it’s an abstraction layer over meteor. Meteor relies on sockets for communication, abstracted via a https://graphql.org/ layer. |
In the world of software development / computer science, there is a technical term "slave" which should be abandoned. This post is intended to be a list of software tools which use "slave" or which have gone through a rename process away from using the word "slave".
More discussion/summary or this topic on Wikipedia
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| input = [5, | |
| 'Harry', | |
| 37.21, | |
| 'Berry', | |
| 37.21, | |
| 'Tina', | |
| 37.2, | |
| 'Akriti', | |
| 41, | |
| 'Harsh', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # USAGE: | |
| # def test_foo: | |
| # stmts = [] | |
| # def catch_queries(conn, cursor, statement, a, b, c): | |
| # stmts.append(statement) | |
| # assert most_frequent_queries(...) == ?? | |
| def most_frequent_queries(queries, query_count, query_type, query_print_length): | |
| select_sql_statement_groupings = {} | |
| for statement in queries: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # Thanks https://gist.github.com/gschizas/3731989 | |
| # This is a simple port-forward / proxy, written using only the default python | |
| # library. If you want to make a suggestion or fix something you can contact-me | |
| # at voorloop_at_gmail.com | |
| # Distributed over IDC(I Don't Care) license | |
| import socket | |
| import select | |
| import time |
NewerOlder