Instantly share code, notes, and snippets.

View serve.config.js
/**
* @description - webpack server configurations
* @author - huang.jian <hjj491229492@hotmail.com>
*/
const convert = require('koa-connect');
const history = require('connect-history-api-fallback');
const proxy = require('http-proxy-middleware');
module.exports = {
View index.html
<main class="container">
<h1>Weird Input</h1>
<div class="nice-input">
<input type="text" id="test" v-model="message" />
<label for="test">
<span class="nice-input__animate" v-for="m in message2">{{m}}</span>
</label>
</div>
</main>
View darknet-yolov3
name: "Darkent2Caffe"
input: "data"
input_dim: 1
input_dim: 3
input_dim: 608
input_dim: 608
layer {
bottom: "data"
top: "layer1-conv"
View Nested Macros
/w gm &{template:npcaction} {{rname=TITLE}} {{name=}} {{description=[MACRONAME](!&#13;#MACRO)}}
View Test.dat
using System;
using System.Threading;
public class Program
{
public static void Main()
{
int workerThreads;
int portThreads;
View playground.rs
#![allow(dead_code)]
use Nop::*;
enum Nop {
Fox(i32, i32),
Pony(i32, i32),
}
struct Miv {
small: i32,
View mark-ring.el
(defun unpop-to-mark-command ()
"Unpop off mark ring. Does nothing if mark ring is empty."
(when mark-ring
(setq mark-ring (cons (copy-marker (mark-marker)) mark-ring))
(set-marker (mark-marker) (car (last mark-ring)) (current-buffer))
(when (null (mark t)) (ding))
(setq mark-ring (nbutlast mark-ring))
(goto-char (marker-position (car (last mark-ring))))))
(defun push-mark ()
View gist:407a966c39fed8fd9208faf527677a0d
Lú hủogāi jí hóa:
<< Báq pỏq lủ rẻaq hóa gúaq lỉa sa púq ku néi pa shỏ shỉaq rào tî hóa sa púq bìu shóichīa da. >>
Lú chỉ pủ kủq jí súq hóa:
<< Báq pỏq lủ rẻaq hóa gúaq lìa sa púq kủnē pa, shỏ shỉaq rào tî hóa sa púq bỉushōaicīa da. >>
Lú chỉ pủ kủqshāo jí súq hóa:
<< Báq pỏq lủ rẻaq hóa gúaq lìa sa púq kủnē pa, shỏ [chỉaq] rào tî [go hó] sa púq bỉushōaicīa da. >>
View Bridge.sol
pragma solidity ^0.4.25;
contract Bridge {
// message sent to other chains
// srcChain is implicit (this chain), destChain is map key
struct SendMsg {
address srcAddr;
address destAddr;
uint256 value;
View redux-combineReducers-implementation.js
const combineReducers = reducers => {
return (state = {}, action) => {
// Reduce all the keys for reducers from `todos` and `visibilityFilter`
return Object.keys(reducers).reduce(
(nextState, key) => {
// Call the corresponding reducer function for a given key
nextState[key] = reducers[key] (
state[key],
action