Skip to content

Instantly share code, notes, and snippets.

View goztrk's full-sized avatar
🪡
ta'veren

Gökhan Öztürk goztrk

🪡
ta'veren
View GitHub Profile
@goztrk
goztrk / keyboard-keys.md
Created September 28, 2022 19:51 — forked from bittner/keyboard-keys.md
Keyboard keys markup in MarkDown

Ctrl + Alt + Space

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@goztrk
goztrk / subset-sum.php
Last active August 29, 2015 14:08
This function is a recursive iterator function that gets all "unique" combinations with the given items.
<?php
function subsetSumRecursive($numbers, $arraySize, $level = 1, $i = 0, $addThis = [])
{
if ($level == $arraySize) {
$result = [];
for (; $i < count($numbers); $i++) {
$result[] = array_merge($addThis, array($numbers[$i]));
}
return $result;
@goztrk
goztrk / gist:5090631
Created March 5, 2013 14:24 — forked from schacon/gist:1
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.
@goztrk
goztrk / fibonacci.php
Created March 5, 2013 14:21
This little program prints out 500 of the fibonacci numbers. You can increase of decrease the result number by changing `$reach` variable. This program does not adds "E+15" thing to numbers or so. It gives exact result.
<?php
/**
* Function - addNumbers()
*
* This function adds the numbers old school way. It starts from last digit
* and add them by one by one. If results greater than 9, it takes the first
* digit to add it to next adding step.
*
* @author Gökhan ÖZTÜRK <gokhan@eg-ozturk.com>
@goztrk
goztrk / readme.md
Created September 8, 2012 23:28
PHP Cheat Sheet

PHP Cheat Sheet

The purpose of this project is creating all usable ways of PHP coding.

This gist will contain:

  • Variables
  • Control Structures
  • Loops
  • Classes