Skip to content

Instantly share code, notes, and snippets.

@jegarfa
jegarfa / hist2d.py
Created May 9, 2024 16:22 — forked from anonymous/hist2d.py
matplotlib 2d histogram with independant x and y histograms
# forked from http://matplotlib.org/examples/pylab_examples/scatter_hist.html and http://docs.scipy.org/doc/numpy/reference/generated/numpy-histogram2d-1.py
from itertools import izip
from collections import defaultdict
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import NullFormatter
def density_plot(x, y, nxbins = 50, nybins = 50) :
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 9, 2024 16:21
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@chawyehsu
chawyehsu / makeding.conf
Created May 9, 2024 12:59
思杰马克丁域名列表
4009997658.com
6xigema.com
abbyychina.com
affinitychina.cn
affinitysoft.cn
aida64cn.com
alienskins.cn
anydeskchina.cn
appscan.net.cn
ayoachina.com
import Foundation
import Photos
typealias AssetID = String
class ImageUtil {
static var defaultAlbumName = "App Name"
static var videosAlbumName = "App Name Videos"
@rob5300
rob5300 / DialogueTriggerBehaviour.cs
Last active May 9, 2024 16:16
Example of a PlayableBehaviour
using Ink.Runtime;
using System;
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Timeline;
using Dialogue;
[Serializable]
public class DialogueTriggerBehaviour : PlayableBehaviour
{
@chrismccord
chrismccord / dev.exs
Created May 8, 2024 20:06
Live Reload LiveView notify
config :wps, WPSWeb.Endpoint,
live_reload: [
notify: [
live_view: [
~r"lib/wps_web/core_components.ex$",
~r"lib/wps_web/(live|components)/.*(ex|heex)$"
]
],
patterns: [
~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
@Faria-Ejaz
Faria-Ejaz / Map.js
Last active May 9, 2024 16:16
react Leaflet Map with Auto-suggest Search #leaflet #react-leaflet #search
/** @format */
import { Map, TileLayer, Marker, Popup } from "react-leaflet";
import React, { useEffect, useState, useRef } from "react";
import { geosearch } from "esri-leaflet-geocoder";
import "leaflet/dist/leaflet.css";
import "esri-leaflet-geocoder/dist/esri-leaflet-geocoder.css";
import L from "leaflet";
function MapView(props) {
@jinsley8
jinsley8 / google-analytics.php
Created February 13, 2022 17:51
Enqueue Google Analytics 4 script without tracking Admin
/**
* Enqueue Google Analytics 4 script
*
*/
/* Add Google Analytics 4 Site Tag as close to
the opening <head> tag as possible
=====================================================*/
define("GA4","G-XXXXXX", false); // Replace GA4 ID