Skip to content

Instantly share code, notes, and snippets.

View yuikns's full-sized avatar
🎯
Focusing

Yu yuikns

🎯
Focusing
View GitHub Profile
{"paragraphs":[{"title":"Basic usage - Text note","text":"%md\n## Welcome to Zeppelin for CSE8803BDH.\n##### Try to follow this tutorial by yourself","dateUpdated":"Oct 9, 2016 4:29:49 AM","config":{"colWidth":12,"graph":{"mode":"table","height":300,"optionOpen":false,"keys":[],"values":[],"groups":[],"scatter":{}},"enabled":true,"title":true,"editorMode":"ace/mode/markdown","editorHide":true},"settings":{"params":{},"forms":{}},"jobName":"paragraph_1475985200667_166599436","id":"20161009-035320_276280784","result":{"code":"SUCCESS","type":"HTML","msg":"<h2>Welcome to Zeppelin for CSE8803BDH.</h2>\n<h5>Try to follow this tutorial by yourself</h5>\n"},"dateCreated":"Oct 9, 2016 3:53:20 AM","dateStarted":"Oct 9, 2016 4:29:49 AM","dateFinished":"Oct 9, 2016 4:29:49 AM","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:550"},{"text":"println(\"Hello World!\")","dateUpdated":"Oct 9, 2016 5:10:06 AM","config":{"colWidth":12,"graph":{"mode":"table","height":300,"optionOpen":false,"keys":[],"valu

Impl

  • /usr/local/Cellar/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.h
  • /usr/local/Cellar/gcc/8.1.0/include/c++/8.1.0/bits/basic_string.tcc

Append

 template
sudo apt-get update
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
@yuikns
yuikns / my-docker.md
Created February 24, 2018 23:45
a few docker related commands

Remove All Images

docker images --format {{.ID}} | xargs -n 3 -P 3 docker rmi

#include "argcv/c/sys/signal.h"
#include <sys/types.h> // pid_t
#include <stdio.h> // printf
#include <signal.h> // signal
#include <sys/wait.h> // wait
sigfunc* _signal(int signo, sigfunc* func) {
/**
* The MIT License (MIT)
*
* Copyright (c) 2017 Yu Jing <yu@argcv.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
class IPFilter()(override implicit val mat: Materializer) extends Filter {
def apply(f: (RequestHeader) => Future[Result])(request: RequestHeader): Future[Result] = {
if (request.remoteAddress == "127.0.0.1") {
Logger.info(s"from: ${request.remoteAddress}, pass")
f(request).map(identity)
} else {
Logger.info(s"from: ${request.remoteAddress}, rejected")
Future.successful(Default.BadRequest.withHeaders(
#!/usr/bin/perl -w
# conlleval: evaluate result of processing CoNLL-2000 shared task
# usage: conlleval [-l] [-r] [-d delimiterTag] [-o oTag] < file
# README: http://cnts.uia.ac.be/conll2000/chunking/output.html
# options: l: generate LaTeX output for tables like in
# http://cnts.uia.ac.be/conll2003/ner/example.tex
# r: accept raw result tags (without B- and I- prefix;
# assumes one word per chunk)
# d: alternative delimiter tag (default is single space)
# o: alternative outside tag (default is O)
# Doxyfile 1.8.13
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a hash (#) is considered a comment and will be ignored.
# The format is:
# TAG = value [value, ...]
# For lists items can also be appended using:
# TAG += value [value, ...]