Skip to content

Instantly share code, notes, and snippets.

@ChristianAlexander
ChristianAlexander / detect.livemd
Last active May 20, 2024 15:28
Face Detection in Elixir

Face Detection in Elixir

Mix.install(
  [
    {:evision, "~> 0.1"},
    {:kino, "~> 0.7"}
  ],
import SwiftUI
struct ContentView: View {
@State var path: [String] = []
func navigationButton(value: String) -> some View {
NavigationButton {
path.append(value)
} label: {
Text("NavigationButton")
@deethesaint
deethesaint / vector.h
Last active May 20, 2024 15:22
C++ Vector
// Vu Thanh Duong
// Vector
// C++
// Created on: 16/02/22
#ifndef GUARD_VECTOR_H
#define GUARD_VECTOR_H
namespace dlb
{
@deethesaint
deethesaint / queue.h
Created October 17, 2022 01:19
C++ Queue
// Vu Thanh Duong
// C++
// Queue
// Created on: 17/10/22
// QUEUE AND STACK DOESN'T HAVE ITERATROR
// QUEUE FOLLOWS FIFO PRINCIPLE, AND LIFO AS STACK
// NO JUMP IS ALLOWED
// ITERATOR ISN'T NECESSARY
//
@deethesaint
deethesaint / HashTable.cpp
Created December 28, 2022 17:41
hash_table_btap
// CLASS FILE _ HASH_TABLE_CPP
#pragma once
#pragma region HASH_TABLE_CPP
#include <iostream>
#include "slist.h"
using namespace dlb;
@ikuamike
ikuamike / GoogleDorking.md
Created February 22, 2020 20:12 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@deethesaint
deethesaint / astar.py
Created September 5, 2023 04:35
Astar sortest path finding
import pygame
import random
import math
class Gui():
'''
Class for the gui of the application
'''
@ObserverOfTime
ObserverOfTime / WA2-Mac.md
Last active May 20, 2024 15:22
Install and patch White Album 2 on Mac

Install and patch White Album 2 on Mac

This gist is deprecated. You can find the latest instructions here.

1: Japanese locale and fonts

Japanese locale should be enabled by default on Mac.

You can check by running:

@cpyfferoen
cpyfferoen / NugetManager.cs
Last active May 20, 2024 15:19
NuGet API wrapper to search/install packages WITH AUTHENTICATION the same way Nuget.Exe/Client does it - looks up CredentialProviders and plugins (also for Credentials). Specific use case was Azure DevOps feed access.
using NuGet.Common;
using NuGet.Configuration;
using NuGet.Credentials;
using NuGet.PackageManagement;
using NuGet.Packaging;
using NuGet.Packaging.Core;
using NuGet.Packaging.Signing;
using NuGet.ProjectManagement;
using NuGet.Protocol;
using NuGet.Protocol.Core.Types;
@znechai
znechai / pluralize-ru.js
Last active May 20, 2024 15:17
JavaScript - Plural forms for russian words
/**
* Plural forms for russian words
* @param {Integer} count quantity for word
* @param {Array} words Array of words. Example: ['депутат', 'депутата', 'депутатов'], ['коментарий', 'коментария', 'комментариев']
* @return {String} Count + plural form for word
*/
function pluralize(count, words) {
var cases = [2, 0, 1, 1, 1, 2];
return count + ' ' + words[ (count % 100 > 4 && count % 100 < 20) ? 2 : cases[ Math.min(count % 10, 5)] ];
}