영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^
아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.
영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^
아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.
//usr/bin/env go run $0 "$@"; exit | |
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
fmt.Println("Hello world!") |
Comparison of the performance of FFI vs XS zeromq bindings. For FFI the
ZMQ::FFI
bindings are used, first using FFI::Raw
on the backend and then
using FFI::Platypus
. For XS ZMQ::LibZMQ3
is used.
Comparison is done using the zeromq weather station example, first by timing
wuclient.pl using the various implementations, and then by profiling
wuserver.pl using Devel::NYTProf
. When profiling the server is changed to
simply publish 1 million messages and exit.
#!/usr/bin/env perl | |
use Mojolicious::Lite; | |
use DBIx::Sunny; | |
app->attr(dbh => sub { DBIx::Sunny->connect('dbi:mysql:dbname=bbs', 'root','') }); | |
get '/' => sub { | |
my $c = shift; | |
my $entries = app->dbh->select_all('SELECT * FROM entry'); |
export GOPATH="$(builtin cd "$(dirname "${BASH_SOURCE[0]:-$_}" )" && pwd)" | |
export OLDPS1=$PS1 | |
export PS1="[go:$(basename $GOPATH)] $PS1" | |
alias gcd="cd $GOPATH" | |
deactivate() { | |
export PS1=$OLDPS1 | |
unset GOPATH | |
unset OLDPS1 | |
unalias gcd | |
unset deactivate |
#!/bin/bash | |
# where to store the sparse-image | |
WORKSPACE=~/Documents/workspace.dmg.sparseimage | |
create() { | |
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 60g -volname workspace ${WORKSPACE} | |
} | |
detach() { |
use v6; | |
grammar Brainfuck::Grammar { | |
rule TOP {^ [<cmd> || .+? ]* $} | |
proto token cmd { <...> } | |
token cmd:sym<ptr-inc> {\>} | |
token cmd:sym<ptr-dec> {\<} | |
token cmd:sym<inc> {\+} | |
token cmd:sym<dec> {\-} | |
token cmd:sym<input> {\,} |
# Rexfile | |
use Expect; | |
set connection => "OpenSSH"; | |
my $expect_timeout = 5; | |
my $git_password = 'f00b4r'; | |
my $sudo_password = 'test'; |
#define NW 0 | |
#define NE 1 | |
#define SW 2 | |
#define SE 3 | |
#include <math.h> | |
#include <limits.h> | |
#include <stdlib.h> | |
#include <EXTERN.h> |
use Plack::App::CGIBin; | |
use Plack::App::PHPCGI; | |
use Plack::Builder; | |
use File::Zglob; | |
my $cgibin = Plack::App::CGIBin->new( | |
root => "/usr/local/nagios/sbin", | |
exec_cb => sub { my $file = shift; $file =~ m!\.cgi$! and -x $file }, | |
)->to_app; | |
my $static = Plack::App::File->new(root => "/usr/local/nagios/share")->to_app; |