Skip to content

Instantly share code, notes, and snippets.

View matematikaadit's full-sized avatar

Adit Cahya Ramadhan matematikaadit

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Syandal` jepit</title>
</head>
<body><p>2</p></body>
</html>

Example

ABA+B
1.200.000350.0001.550.000
@matematikaadit
matematikaadit / tmux-cheatsheet.markdown
Created April 26, 2017 00:07 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@matematikaadit
matematikaadit / input.txt
Created April 16, 2017 16:19
Test running program
23
12
2
34
56
45
42
50
22
14
@matematikaadit
matematikaadit / i64only.rs
Last active March 25, 2017 17:30
Easy Input Whitespace Sparated.
// token (e.g. integer) sparated by whitespace
mod input {
use std::io::{self, Read};
pub struct Mem {
buf: Vec<u8>,
cur: usize,
}
impl Mem {
pub fn new() -> Self {
let mut buf = Vec::new();
macro_rules! fst {
($exp:expr) => ({
let (x, ..) = $exp;
x
})
}
// License
//
// Dual-licensed to be compatible with the Rust project.
//
// Licensed under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0 or the MIT license
// http://opensource.org/licenses/MIT, at your option. This file may not
// be copied, modified, or distributed except according to those terms.
//
// From: https://github.com/bluss/maplit
00 01 10 11
00000 NUL Spc @ `
00001 SOH ! A a
00010 STX " B b
00011 ETX # C c
00100 EOT $ D d
00101 ENQ % E e
00110 ACK & F f
00111 BEL ' G g
01000 BS ( H h
@matematikaadit
matematikaadit / README.md
Created January 24, 2017 12:58
Deskripsi Botan
title template
Botan
views/base.pug

Botan

(づ。◕‿‿◕。)づ

var NetSocket = require("net").Socket;
var IrcSocket = require("irc-socket");
var parse = require("irc-message").parse;
class Bot {
constructor(config) {
var netSocket = new NetSocket();
var opt = {
socket: netSocket,
port: 6667