Skip to content

Instantly share code, notes, and snippets.

@cjdell
cjdell / TP-Link Tapo C110 OpenIPC.md
Last active August 24, 2025 23:13
TP-Link Tapo C110 OpenIPC
@mikarapace
mikarapace / bluebird.config.js
Last active September 13, 2019 12:35
Learning ES8/Node.js/Bluebird and Redis
var Bluebird = require('bluebird')
Bluebird.config({
longStackTraces: true
})
module.exports = Bluebird
@candlewill
candlewill / keras_models.md
Last active December 9, 2022 02:43
A collection of Various Keras Models Examples

Keras Models Examples

一系列常用模型的Keras实现

DNN

Multilayer Perceptron (MLP) for multi-class softmax classification

from keras.models import Sequential
@sivasankars
sivasankars / app.js
Last active April 1, 2019 08:39
List Available Time Zone Using Moment.js (Node.js)
var moment = require('moment-timezone'); // moment-timezone
console.log(moment.tz.names()); // Get list of all available time zone names
@borgfriend
borgfriend / maya2017install.sh
Last active December 26, 2025 02:05
Maya 2017 Installation on Ubuntu 16.04
#!/bin/bash
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
echo Please run this script using sudo
echo Just type “sudo !!”
exit
fi
#Check for 64-bit arch
if [uname -m != x86_64]; then
/// <summary>
/// A listing of ASCII control characters for readability.
/// </summary>
public static class AsciiControlChars
{
/// <summary>
/// Usually indicates the end of a string.
/// </summary>
public const char Nul = (char)0x00;
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active March 21, 2026 02:30
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@dannguyen
dannguyen / face-boxer-usage.md
Last active July 29, 2023 22:05
A face-detection script in Python

This face-boxer.py script is more-or-less the same code that you'll find in the OpenCV tutorial: Face Detection using Haar Cascades. For another variation, with more explanation, check out RealPython's tutorial.

Usage

The face-boxer.py script is designed to be run from the command-line. It has two required arugments:

  1. The path to a XML file containing a Haar-cascade of visual features. In this example, it will be the features that make up a face.
  2. The path to an image file that you want to perform face-detection on. You can pass in more than one image file as space-separated arguments.
@alanorth
alanorth / emoji.php
Created June 4, 2014 19:32
Emoji class / function / variable names in PHP...
<?php
class 💩💩💩💩
{
function 💩💩💩($😎, $🐯)
{
return $😎 + $🐯;
}
}
$🐔 = 3;
@samvasko
samvasko / makefile
Created April 7, 2014 09:37
Makefile for building keil projects
# Makefile for building keil projects
KEIL=wine "/home/bliker/.wine/drive_c/Keil/UV4/UV4.exe"
TMP=/tmp/keil.out
NULL=/dev/null
# Will prevent it from exiting even when somehing failied
build:
-@$(KEIL) -j0 -b -o $(TMP) *.uvproj 2> $(NULL);
@cat $(TMP)