Skip to content

Instantly share code, notes, and snippets.

View tot0rokr's full-sized avatar
🐳
On Happy!

TOT0Ro tot0rokr

🐳
On Happy!
View GitHub Profile
@tot0rokr
tot0rokr / omok-creator.c
Created January 7, 2025 05:37
오목을 만드는 creator 코드. 역시나 물론 오직 printf, scanf, for문만을 사용한.
#include <stdio.h>
int define_variables()
{
FILE *out;
int i,j;
out=fopen("YES 수정.TXT", "w+");
for(i=1;i<=19;i++)
{
for(j=1;j<=19;j++)
@tot0rokr
tot0rokr / omok-source.c
Created January 7, 2025 05:36
오목. 하지만 오직 printf, scanf, for문만을 사용한.
#include <stdio.h>
int main()
{
//이거슨 진정한 바둑판이다.
int Pan0101, Pan0102, Pan0103, Pan0104, Pan0105, Pan0106, Pan0107, Pan0108, Pan0109, Pan0110, Pan0111, Pan0112, Pan0113, Pan0114, Pan0115, Pan0116, Pan0117, Pan0118, Pan0119;
int Pan0201, Pan0202, Pan0203, Pan0204, Pan0205, Pan0206, Pan0207, Pan0208, Pan0209, Pan0210, Pan0211, Pan0212, Pan0213, Pan0214, Pan0215, Pan0216, Pan0217, Pan0218, Pan0219;
int Pan0301, Pan0302, Pan0303, Pan0304, Pan0305, Pan0306, Pan0307, Pan0308, Pan0309, Pan0310, Pan0311, Pan0312, Pan0313, Pan0314, Pan0315, Pan0316, Pan0317, Pan0318, Pan0319;
int Pan0401, Pan0402, Pan0403, Pan0404, Pan0405, Pan0406, Pan0407, Pan0408, Pan0409, Pan0410, Pan0411, Pan0412, Pan0413, Pan0414, Pan0415, Pan0416, Pan0417, Pan0418, Pan0419;
int Pan0501, Pan0502, Pan0503, Pan0504, Pan0505, Pan0506, Pan0507, Pan0508, Pan0509, Pan0510, Pan0511, Pan0512, Pan0513, Pan0514, Pan0515, Pan0516, Pan0517, Pan0518, Pan0519;
int Pan0601, Pan0602, Pan0603, Pan0604, Pan0605, Pan0606, Pan0607, Pan06
@tot0rokr
tot0rokr / cdb-example-sig.json
Last active March 8, 2024 07:10
SIG CDB example
{
"$schema":"http://json-schema.org/draft-04/schema#",
"id":"http://www.bluetooth.com/specifications/assigned-numbers/mesh-profile/cdb-schema.json#",
"version":"1.0.0",
"meshUUID":"72C6BE40-444D-2081-BEAA-DDAD4E3CC21C",
"meshName":"Brian and Mary's House",
"timestamp":"2018-12-23T11:45:22-08:00",
"netKeys":[
{
"name":"Home Network",
@tot0rokr
tot0rokr / repo-apply.sh
Last active April 4, 2023 05:10 — forked from gipi/repo-apply.sh
Split a patch created with repo diff in a set of usable patches
#!/bin/sh
## Script to patch up diff reated by `repo diff`
# from https://groups.google.com/d/msg/repo-discuss/43juvD1qGIQ/7maptZVcEjsJ
if [ -z "$1" ] || [ ! -e "$1" ]; then
echo "Usages: $0 <repo_diff_file>";
exit 0;
fi
rm -fr _tmp_splits*
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
[credential]
helper = store
[core]
editor = vim
[color]
ui = auto
[alias]
st = status
co = checkout
br = branch
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
umask 0022
#!/bin/bash
# apt update
apt-get update
# basic files
apt-get install -y openssh-server vim python python3 tmux
# fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
@tot0rokr
tot0rokr / xterm-color256.md
Created April 20, 2019 14:10
xterm-color256

U5AJI