Skip to content

Instantly share code, notes, and snippets.

@ilkerkesen
ilkerkesen / git-tutorial.txt
Created February 26, 2018 14:23
Git Tutorial
degisiklikleri alma => git fetch remote_name + git merge origin/branch-name
o anki reponun durumunu goruntuleme => git status
degisiklikleri goruntuleme => git diff
degisiklikleri stage area'ya gonderme => git add file1 file2
degisiklikleri yerel repoya kaydetmek => git commit -m "message"
yerel reponun history'sini gormek => git log -v
yerel repodaki degisiklikleri merkez repoya gondermek => git push remote_name branch_name
mevcut branchleri goruntuleme => git branch -v
yeni branch olusturma => git checkout -b new_branch_name base_branch_name
branch'i remote'a gonderdikten sonra PR (pull request acma) GitHub'un arayuzunden
@ilkerkesen
ilkerkesen / Makefile
Created March 5, 2018 16:56
Example Makefile for Interactive Graphics Course
# change "/path/to/lib" strings
LDLIBS = -lglut -lGLEW -lGL -lGLU
CXXINCS = -I/path/to/lib/include
INIT_SHADER = /path/to/lib/common/InitShader.cpp
INIT_SHADER_OBJ = /path/to/lib/common/InitShader.o
.PHONY: clean cleanall
all: program
@ilkerkesen
ilkerkesen / frame.jl
Created April 3, 2018 10:51
luxor image
using Luxor
function make_frame(W, H, images, captions, title="title", fn="drawing.png")
@assert length(images) == length(captions)
nimg = length(images) + 1
width = W*nimg; height = H*nimg
Drawing(width, height, fn)
tiles = Tiler(W,H,1,nimg)
origin()
background("white")
@ilkerkesen
ilkerkesen / .bash_profile
Last active February 14, 2021 14:18
cluster environment
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export PATH=$PATH:$HOME/.local/bin:$HOME/bin