Skip to content

Instantly share code, notes, and snippets.

@ripperhe
ripperhe / README.md
Created October 28, 2022 05:02 — forked from IsaacXen/README.md
(Almost) Every WWDC videos download links for aria2c.
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 7, 2024 15:39
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@ChristopherDavenport
ChristopherDavenport / LRUCache.scala
Last active May 7, 2024 15:38
LRUCache Implementation
// import cats._
import cats.effect._
import cats.effect.concurrent.{Ref, Semaphore}
import cats.effect.implicits._
import cats.implicits._
import scala.concurrent.duration._
import scala.collection.immutable.Map
import io.chrisdavenport.mapref.MapRef
// import io.chrisdavenport.mapref.implicits._
@parsibox
parsibox / ip.sh
Created November 6, 2022 09:10
whatsapp and instagram ip list for microtik
/ip firewall address-list
add address=3.33.221.48/32 list=Meta
add address=3.33.252.61/32 list=Meta
add address=15.197.206.217/32 list=Meta
add address=15.197.210.208/32 list=Meta
@tnarla
tnarla / page.tsx
Created February 2, 2024 20:35
Valentine website
"use client";
import { useState } from "react";
export default function Page() {
const [noCount, setNoCount] = useState(0);
const [yesPressed, setYesPressed] = useState(false);
const yesButtonSize = noCount * 20 + 16;
const handleNoClick = () => {
setNoCount(noCount + 1);
import 'package:flutter/material.dart';
import 'dart:math' as math;
import 'dart:async';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
@fjpalacios
fjpalacios / arch-i3gaps-install.md
Last active May 7, 2024 15:35
Arch + i3-gaps Install Guide

Arch + i3-gaps Install Guide

First set up your keyboard layout. For example, in Spanish:

   # loadkeys es

For a list of all acceptable keymaps:

   # localectl list-keymaps
@mmozeiko
mmozeiko / ctime.c
Last active May 7, 2024 15:35
ctime.c
/* ========================================================================
$File: tools/ctime/ctime.c $
$Date: 2016/05/08 04:16:55PM $
$Revision: 7 $
$Creator: Casey Muratori $
$Notice:
The author of this software MAKES NO WARRANTY as to the RELIABILITY,
SUITABILITY, or USABILITY of this software. USE IT AT YOUR OWN RISK.
@GregTJ
GregTJ / jacobian.py
Last active May 7, 2024 15:35
Affine Map, Jacobian, Curl, and Divergence from Vector Field with Numpy
import numpy as np
from matplotlib import pyplot as plt
# Arbitrary vector field example.
shape = 11, 11
dims = len(shape)
domain = -2, 2
x, y = np.meshgrid(*(np.linspace(*domain, num=d) for d in shape))
field = np.stack((-2 * x * y, x ** 2 + 2 * y - 4))
@noseka1
noseka1 / JSONPath in kubectl CLI.md
Last active May 7, 2024 15:35
JSONPath in kubectl CLI examples

Examples

$ kubectl get pods -o json
$ kubectl get pods -o jsonpath='{@}'
$ kubectl get pods -o jsonpath='{.items[0]}'
$ kubectl get pods -o jsonpath='{.items[0].metadata.name}'
$ kubectl get pods -o jsonpath="{.items[*]['metadata.name', 'status.capacity']}"
$ kubectl get pods -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.startTime}{"\n"}{end}'
$ kubectl get pods -o jsonpath='{.items[*].status.podIP}'