Skip to content

Instantly share code, notes, and snippets.

https://jwt.io/#debugger-io?token=eyJraWQiOiJpY2NOam9LZjFtX3NTZXEySVh4SVZjNkJPQW8iLCJhbGciOiJQUzI1NiJ9.CiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAiaXNzIjogIjJraVhReW8wdGVkalcyc29talNnSDciLAogICAgICAgICAgICAgICJpYXQiOiAxNTUwODU0MTAyLAogICAgICAgICAgICAgICJleHAiOiAxNTYyMjg3NzAyLAogICAgICAgICAgICAgICJhdWQiOiAiaHR0cHM6Ly9yZXZvbHV0LmNvbSIsCiAgICAgICAgICAgICAgImdyYW50X3R5cGVzIjogWwogICAgICAgICAgICAgICAgImF1dGhvcml6YXRpb25fY29kZSIsCiAgICAgICAgICAgICAgICAicmVmcmVzaF90b2tlbiIKICAgICAgICAgICAgICBdLAogICAgICAgICAgICAgICJzY29wZSI6IFsKICAgICAgICAgICAgICAgICJvcGVuaWQiLAogICAgICAgICAgICAgICAgInBheW1lbnRzIgogICAgICAgICAgICAgIF0sCiAgICAgICAgICAgICAgInJlZGlyZWN0X3VyaXMiOiBbCiAgICAgICAgICAgICAgICAiaHR0cHM6Ly9vYmEucmV2b2x1dC5jb2Rlcy9vcGVuaWQtY29uZmlndXJhdGlvbiIKICAgICAgICAgICAgICBdLAogICAgICAgICAgICAgICJ0b2tlbl9lbmRwb2ludF9hdXRoX21ldGhvZCI6ICJwcml2YXRlX2tleV9qd3QiLAogICAgICAgICAgICAgICJhcHBsaWNhdGlvbl90eXBlIjogIndlYiIsCiAgICAgICAgICAgICAgImlkX3Rva2VuX3NpZ25lZF9yZXNwb25zZV9hbGciOiAiUFMyNTYiLAogICAgICAgICAgICAgICJyZXF1ZXN0X29iamVjdF9za
package main
import (
"bytes"
"fmt"
"net"
"net/http"
"net/http/httputil"
"strconv"
)
package main
import "fmt"
func matchPattern(str, pattern string, m, n int, mp map[rune]string) bool {
_ = "breakpoint"
if m == len(str) && n == len(pattern) {
return true
var employees = [new Employee("e1", 28), new Employee("e2", 31), new Employee("e3", 25)]
function Employee(name, age) {
this.name = name
this.age = age
}
function sort(employees) {
if (employees == null || employees.length == 0) {
return employees
(defun flatten (structure)
(cond ((null structure) nil)
((atom structure) (list structure))
(t (mapcan #'flatten structure))))
(defun g!-symbol-p (s)
(and (symbolp s)
(> (length (symbol-name s)) 2)
(string= (symbol-name s)
(defun write-bytes (value n stream)
(loop for i from (/ n 8) downto 1
do (write-byte (ldb (byte 8 (* (1- i) 8)) value) stream)))
(defun zk-connect (host port)
(let* ((socket (usocket:socket-connect host port :element-type '(unsigned-byte 8)))
(stream (usocket:socket-stream socket))
(protocol-version 0)
(last-zxid 0)
(timeout 10000)
defmodule ProxyModule do
def proxy(f) do
fn [args] -> IO.inspect(args); f.(args) end
end
end
defmodule Calculator do
def sum(x, y) do
x + y
end
defmodule Server do
use GenServer.Behaviour
def start_link() do
:gen_server.start_link(__MODULE__, [], [])
end
end
ERROR REPORT==== 25-May-2014::23:40:33 ===
** Generic server torrentex terminating
** Last message in was {download,<<"test/sample.torrent">>}
** When Server state == []
** Reason for termination ==
** {noproc,
{gen_server,call,
['Elixir.Torrentex.TrackerSupervisor',
{start_child,
{'Elixir.Torrentex.UDPTracker',
#Supervisor
defmodule Torrentex.TrackerSupervisor do
use Supervisor.Behaviour
@udp_port 9998
@tcp_port 9999
def start_link do
:supervisor.start_link(__MODULE__, [])
end