Skip to content

Instantly share code, notes, and snippets.

@mwaskom
mwaskom / replacing_seaborn_distplot.ipynb
Last active May 14, 2024 07:33
A guide to replacing the deprecated `seaborn.distplot` function.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rise-worlds
rise-worlds / For Mac 4.2.6 unlimited trial.md
Last active May 14, 2024 07:31 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@nicokosi
nicokosi / learn-how-to-learn.md
Last active May 14, 2024 07:31
Notes about online course "Lean How to Learn" (https://www.coursera.org/learn/learning-how-to-learn)
@cyhsutw
cyhsutw / MathJax.ipynb
Last active May 14, 2024 07:31
Grabbed from https://github.com/odewahn/ipynb-examples, converted to v3 for GitHub to render.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dcasati
dcasati / kube-dns-port-forward.sh
Last active May 14, 2024 07:28
kubernetes - Kube-DNS port forwarding and DNS querying.
# Use dig to find out about the k8s records
# dig +vc -p 5300 @127.0.0.1 cluser.local
# Use dig to retrieve an A Record
# dig +vc -p 5300 @127.0.0.1 A cb-example-0000.default.svc.cluster.local
# Use dig to do a reverse lookup (-x flag)
#dig +vc -p 5300 @127.0.0.1 -x 10.0.50.156
# Add the port forward
@austinmarton
austinmarton / sendRawEth.c
Created February 27, 2012 08:40
Send a raw Ethernet frame in Linux
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*/
#include <arpa/inet.h>
#include <linux/if_packet.h>
#include <stdio.h>
@nf
nf / hello-node.js
Created July 6, 2012 21:14
Hello world web server that scales across multiple processors
var cluster = require('cluster');
var http = require('http');
var numCPUs = require('os').cpus().length;
if (cluster.isMaster) {
// Fork workers.
for (var i = 0; i < numCPUs; i++) {
cluster.fork();
}
cluster.on('exit', function(worker, code, signal) {
@lopspower
lopspower / README.md
Last active May 14, 2024 07:27
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@4uzhoy
4uzhoy / main.dart
Created May 4, 2024 08:22 — forked from PlugFox/main.dart
Sequential Cubit
/*
* Sequential Cubit
* https://gist.github.com/PlugFox/a183c3c804a3369efe8ad3584f0550ac
* https://dartpad.dev?id=a183c3c804a3369efe8ad3584f0550ac
* Matiunin Mikhail <plugfox@gmail.com>, 15 February 2024
*/
import 'dart:async';
import 'dart:collection';