Skip to content

Instantly share code, notes, and snippets.

View rayjasson98's full-sized avatar

Ray Jasson rayjasson98

  • Guidewire Software
  • 17:37 (UTC +08:00)
View GitHub Profile
@cutiepoka
cutiepoka / gist:a9347c68bfcf29060926a8af46bb1701
Created October 6, 2023 18:18
Youtube allow ads popup blocker
// ==UserScript==
// @name youtube popup killer
// @namespace http://tampermonkey.net/
// @version 0.3
// @description try to take over the world!
// @author Selbereth
// @match https://*.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
@KonnorRogers
KonnorRogers / geocode_job.rb
Last active April 16, 2022 10:51
async geocoding with Ruby-Geocoder
# app/jobs/geocode_job.rb
class GeocodeJob < ApplicationJob
def perform(model)
model.geocode
end
end
@tykurtz
tykurtz / grokking_to_leetcode.md
Last active November 18, 2024 17:17
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@acantril
acantril / iterm2-solarized.md
Created February 14, 2020 05:50 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@acanakoglu
acanakoglu / pgadmin4 master password - MacOS
Last active November 2, 2023 17:05
How to disable master password of pgadmin4
Open file below, tested with the version 4.17 and 4.18:
/Applications/pgAdmin\ 4.app/Contents/Resources/web/config.py
and then find the line contains: "MASTER_PASSWORD_REQUIRED" and change the parameter into "False"
Note: The folder location for Windows is in the comments.
@jlollis
jlollis / gitkeep.md
Last active November 11, 2024 10:37
.gitkeep - Push your entire folder structure to GitHub, including empty folders

.gitkeep

A .gitkeep file tells github to do the opposite of its default behaviour, which is to ignore empty folders.

If you want to track an empty folder, or a folder with untracked files, create a 0kb file with the .gitkeep file extension in that folder.

touch FOLDER_NAME/.gitkeep

@devforfu
devforfu / bing.py
Created October 18, 2018 04:01
Bing API usage example
from io import BytesIO
from pprint import pprint as pp
import requests
from PIL import Image
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
@slightfoot
slightfoot / appbar_demo.dart
Created July 2, 2018 01:50
Demonstrate how to change the AppBar from within a PageView.
import 'package:flutter/material.dart';
void main() => runApp(TestApp());
class TestApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primaryColor: Colors.green[900],
@heygrady
heygrady / render-props.md
Last active August 6, 2024 18:50
Avoiding HOC; Favoring render props