Skip to content

Instantly share code, notes, and snippets.

View Kimeiga's full-sized avatar
💠
iwaw, iwnl

Hakan Alpay Kimeiga

💠
iwaw, iwnl
View GitHub Profile
template<typename KeyType, typename ValueType>
void MyHash<KeyType, ValueType>::associate(const KeyType &key, const ValueType &value) {
//check if array is too small
double numItems = m_numItems;
double numBuckets = m_numBuckets;
if (((numItems + 1) / numBuckets) > m_maxLoadFactor) {
//must allocate new array ugh
HashNode** htable2 = new HashNode*[m_numBuckets * 2];
@Kimeiga
Kimeiga / tmatestdata1.txt
Created March 31, 2018 18:14
tma test data 1
Michael
3/31/18 12:00
One day Lisa went to the store
Gautam
3/31/18 12:05
She couldn’t find her medication
Sandro
3/31/18 12:06
@Kimeiga
Kimeiga / .gitattributes
Created June 21, 2018 16:45
Kimeiga's Unity .gitattributes
* text=auto
# Unity files
*.meta -text -merge=unityamlmerge
*.unity -text -merge=unityamlmerge
*.asset -text -merge=unityamlmerge
*.prefab -text -merge=unityamlmerge
# Image formats
*.psd filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
@Kimeiga
Kimeiga / .gitignore
Created June 21, 2018 16:46
Kimeiga's Unity .gitignore
#
# == Windows ==
#
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
@Kimeiga
Kimeiga / config
Created June 21, 2018 16:47
Kimeiga's .git/config
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[merge]
tool = unityyamlmerge
@Kimeiga
Kimeiga / touchbar.txt
Created June 24, 2018 03:50
I discovered the intended use of the apple touch bar
The game was so much better then a few games of a good app but the only way I could do this for a little bit to come over for the first weekend of a year of business with the new year to get it off and get a little bit of the information I just want from a person who can be the person that is in touch and the other questions you have in your life you need a new perspective and you have a good job you can do it and you can use the code for your name on it or not but I don't think it's possible that I have to get to work and then I just got a new email and I have a email that I have on the app and it has to do a good app and a lot to do and what they do with you you have a good day to work on a day and then I just got a call and ask for a ride to work on my car 🚗 🚘 🚙 day I first got the game but the first person you get to be a part in your business or even business or not just a few of you have been a good job 👏 was a good game for me and I just got to the point that I can access the code of the email app to b
@Kimeiga
Kimeiga / bindings.json
Last active July 3, 2018 15:32
Micro Keybindings (Windows WSL through Cmder) (for Mac, I only use the bottom two bindings)
{
"AltLeft": "StartOfLine",
"AltRight": "EndOfLine",
"Alt-k": "SelectToStartOfLine",
"Alt-l": "SelectToEndOfLine",
"AltUp": "CursorStart",
"AltDown": "CursorEnd",
"Alt-CtrlH": "DeleteWordLeft",
@Kimeiga
Kimeiga / index.html
Created August 30, 2018 02:15
html boilerplate
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hakan Kimeiga Alpay</title>
<meta name="description" content="Game, Web, Language Designer">
<meta name="author" content="Hakan Kimeiga Alpay">
@Kimeiga
Kimeiga / kacit.min.css
Last active August 30, 2018 04:52
kimeiga's version of the awesome tacit
input,textarea,select,button,option,html,body{font-family:Georgia,serif;font-size:18px;font-stretch:normal;font-style:normal;font-weight:400;line-height:29.7px}input,textarea,select,button,option,html,body{font-size:18px;font-stretch:normal;font-style:normal;font-weight:400;line-height:29.7px}th{font-weight:600}td,th{border-bottom:1.08px solid #595959;overflow:auto;padding:14.85px 18px;text-align:left;vertical-align:top}thead th{border-bottom-width:2.16px;padding-bottom:6.3px}table{display:table;overflow-x:auto}input,textarea,select,button,option,html,body{font-size:18px;font-stretch:normal;font-style:normal;font-weight:400;line-height:29.7px}fieldset{display:flex;flex-direction:row;flex-wrap:wrap}fieldset legend{margin:18px 0}input,textarea,select,button{border-radius:3.6px;display:inline-block;padding:9.9px}input+label,input+input[type="checkbox"],input+input[type="radio"],textarea+label,textarea+input[type="checkbox"],textarea+input[type="radio"],select+label,select+input[type="checkbox"],select+input[type
@Kimeiga
Kimeiga / ldconfig
Created November 11, 2019 23:31
alpine ldconfig
#!/bin/sh
if [ "$1" = "-p" ]; then
# Hack to mimic GNU ldconfig s -p option, needed by ctypes, used by shapely
echo " libc.musl-x86_64.so.1 (libc6,x86-64) => /lib/libc.musl-x86_64.so.1"
exit 0
fi
scan_dirs() {
scanelf -qS "$@" | while read SONAME FILE; do
TARGET="${FILE##*/}"
LINK="${FILE%/*}/$SONAME"