Skip to content

Instantly share code, notes, and snippets.

View Dinir's full-sized avatar
🦽
Lost

Dinir Nertan Dinir

🦽
Lost
View GitHub Profile
@Dinir
Dinir / fish_prompt.fish
Last active September 29, 2016 14:16
My Fish Prompt
# I made these shortcuts to make it comfortable to change colors later.
# Also you can just put set_color manually instead.
set blk (set_color black)
set red (set_color red)
set grn (set_color green)
set yel (set_color yellow)
set blu (set_color blue)
set mgt (set_color magenta)
set cyn (set_color cyan)
set lgry (set_color white)

Keybase proof

I hereby claim:

  • I am dinir on github.
  • I am dinir (https://keybase.io/dinir) on keybase.
  • I have a public key ASDmJH_bgCWbfng6eot4ROyrXb-iT5iVX_7diA_g31S3fgo

To claim this, I am signing this object:

@Dinir
Dinir / 1.html
Last active May 14, 2016 12:52
Messing up react things
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="text/html;charset=utf-8" http-equiv="content-type">
<meta content="utf-8" http-equiv="encoding">
<meta name="viewport"
content="width=device-width, initial-scale=1.0"/>
<title>Title</title>
<!-- <link rel="shortcut icon" href="/favicon.ico">
@Dinir
Dinir / index.html
Created May 15, 2016 06:18
react.js take global variables
<body>
<div id="main"></div>
</body>
@Dinir
Dinir / index.html
Created May 15, 2016 09:47
react.js handle changes in object containing arrays
<body>
<div id="main"></div>
</body>
@Dinir
Dinir / kittyLinux.sh
Last active August 30, 2016 06:41
This script file run Copy Kitty in a single click I hope.
#!/bin/bash
export WINEPREFIX=$HOME/.wine32 WINEARCH=win32
winetricks xna40
(cd Application\ Files/kitty*; wine kitty.exe)
set -e WINEPREFIX && set -e WINEARCH
# Copy Kitty is a great game and you can download the demo in https://entanma.itch.io/copy-kitty .
#
# Install winetricks first before executing this script. `sudo pacman -S winetricks` will do in Arch.
@Dinir
Dinir / syncToServer.sh
Last active August 28, 2016 17:23
Sync files to your server without typing all the rsync commands.
#!/bin/bash
# Dinir Nertan, 2016
# http://dinir.works, https://twitter.com/DinirNertan
# I made this script to conveniently rsync files to my server
# by removing the need of typing all the command every time.
# HOW TO USE
# Put this script on the base directory you want to sync files from,
@Dinir
Dinir / domObjectCreator.js
Last active September 9, 2016 14:06
Create HTML DOMs quickly.
const dobj = function(tag, names, inner, children, ...moreProps) {
let newOne = document.createElement(tag);
if(names) {
if(names.constructor===Array) {
names[0]?newOne.className = names[0]:"";
names[1]?newOne.id = names[1]:"";
} else
newOne.className = names;
}
@Dinir
Dinir / changeClass.js
Created September 5, 2016 10:50
Change DOM classes quickly.
const changeClass = (target, firstCl, secondCl) => {
// if first exist = add it
// if both exist = change first to second
// if both exist and first is * = overwrite with second
if(firstCl) {
if(!secondCl) {
target.className += ` ${firstCl}`;
} else {
target.className = firstCl==="*"?
secondCl:
@Dinir
Dinir / pico-8 korean.txt
Created October 18, 2016 01:16
PICO-8 Manual (Korean)
============================================================================================
PICO-8 v0.1.8
http://www.pico-8.com
(c) Copyright 2014-2016 Lexaloffle Games LLP
만든 이: Joseph White // hey@lexaloffle.com
옮긴 이: Dinir Nertan // DinirNertan@gmail.com
PICO-8은 아래의 기술로 만들어졌습니다:
SDL2 http://www.libsdl.org