Skip to content

Instantly share code, notes, and snippets.

View derpycoder's full-sized avatar
🚧
Working on DerpyTools

Abhijit Kar ツ derpycoder

🚧
Working on DerpyTools
View GitHub Profile
@derpycoder
derpycoder / modify-what-differs.js
Last active December 20, 2017 03:20
Apply changes from one object to another if they differ.
// Configs
var origConfig = {
p: {
a: 23,
b: 92,
c: {
num: 1
}
},
q: {
@kevbuchanan
kevbuchanan / health_controller.ex
Last active August 4, 2023 16:06
Phoenix Health Endpoint
defmodule MyAppWeb.HealthController do
use MyAppWeb, :controller
alias MyAppWeb.Heartbeat
def root(conn, _) do
send_resp(conn, :no_content, "")
end
def show(conn, _) do
@derpycoder
derpycoder / blueprint.svg
Last active March 18, 2020 10:37
CSS Pattern Background & Pan Using Mouse
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eljabbaryhicham
eljabbaryhicham / index.html
Created August 20, 2020 08:40
Plyr - HLS stream video
<div class="container">
<video controls crossorigin playsinline poster="https://bitdash-a.akamaihd.net/content/sintel/poster.png"></video>
</div>
<!-- Plyr resources and browser polyfills are specified in the pen settings -->
<!-- Hls.js 0.9.x and 0.10.x both have critical bugs affecting this demo. Using fixed git hash to when it was working (0.10.0 pre-release), until https://github.com/video-dev/hls.js/issues/1790 has been resolved -->
<script src="https://cdn.rawgit.com/video-dev/hls.js/18bb552/dist/hls.min.js"></script>
@myobie
myobie / application.ex
Last active June 15, 2024 18:35
Using Finch with ExAws
defmodule Example.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
Example.Repo,
ExampleWeb.Telemetry,
{Phoenix.PubSub, name: Example.PubSub},
@angelbarrera92
angelbarrera92 / litestream.json
Created April 2, 2021 11:50
Litestream Grafana Dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@DanB91
DanB91 / README.txt
Last active November 28, 2022 04:57
Playdate Zig starting point
THIS GIST IS OUT OF DATE! Please use my new project template here to get started with Zig on Playdate:
https://github.com/DanB91/Zig-Playdate-Template
The rest of this is preservied for historical reasons:
This is a small snippet of some code to get you started for developing for the Playdate on Zig. This code should be used as a starting point and may not compile without some massaging. This code has only been tested out on macOS and you'll need to modify the addSharedLibrary() portion of build.zig to output a .dll or .so instead of a .dylib, depending on you platform.
This code will help you produce both an executable for the Playdate simulator and also an executable that actually run on the Playdate hardware.
@derpycoder
derpycoder / domain-registrar.csv
Last active January 30, 2023 18:45
Domain Registrar Comparison
Registrar Registration Renewal Transfer Multiyear Cost * Included
Porkbun $10.87 $10.87 $10.87 3 years: $32.61 - 5 years: $54.35 dns • email forwarding • ssl • whois privacy • dejigamaflipper
GoDaddy $20.17 $20.17 $20.17 3 years: $60.51 - 5 years: $100.85 dns • whois privacy
Google Domains $12.00 $12.00 $12.00 3 years: $36.00 - 5 years: $60.00 dns • email forwarding • whois privacy
Domain.com $14 $21.99 n/a 3 years: $58.97 - 5 years: $102.95 dns • email forwarding
Name.com $14.99 $16.99 $16.99 3 years: $48.97 - 5 years: $82.95 dns
Namecheap $13.16 $12.96 $17.16 3 years: $47.28 - 5 years: $81.60 dns • email forwarding • whois privacy
101domain $16.17 $19.17 $15.17 3 years: $54.51 - 5 years: $92.85 dns
Hover $16.17 $16.17 $16.17 3 years: $48.51 - 5 years: $80.85 dns • whois privacy
Gandi.net $16.39 $16.39 $16.39 3 years: $49.17 - 5 years: $81.95 dns • email account • email forwarding • ssl • whois privacy