Skip to content

Instantly share code, notes, and snippets.

View goker-dev's full-sized avatar
🦁
Working from home

goker goker-dev

🦁
Working from home
View GitHub Profile
@goker-dev
goker-dev / ImageViewer.js
Last active December 17, 2019 18:31
React Image Component for Firebase Storage
import React, {useEffect, useState} from 'react';
import firebase from "firebase/app";
const StorImage = (props) => {
console.log("PROPS", props)
const [src, setSrc] = useState(null);
const placeholder = props.placeholder === undefined ? `http://holder.ninja/${props.width || 100}x${props.height || 100}.svg` :
props.placeholder;
const isACorrectSrc = (src) => {
return !(!src || src === 'undefined' || src === 'undefined.png' || typeof src === 'object')
@goker-dev
goker-dev / payoneer.php
Created June 22, 2016 08:29 — forked from pmoust/payoneer.php
payoneer.php
<?php
/**
* Payoneer API integration
*
* @date 27/11/12
* @name $payoneer
* @author Panagiotis Moustafellos
*/
class Payoneer
{
### Keybase proof
I hereby claim:
* I am gokercebeci on github.
* I am goker (https://keybase.io/goker) on keybase.
* I have a public key whose fingerprint is BA3B 07F6 4FD9 85BD F224 6E15 AB96 24A2 A9F2 2E80
To claim this, I am signing this object:
#include <cstdlib>
#include <iostream> // std::cout
#include <algorithm> // std::sort
#include <vector> // std::vector
// C++ ZigZag Scan Algorithm
// Compiling: g++ zigzag.cpp -o zigzag
// Usage: ./zigzag N M
// Based on http://stackoverflow.com/questions/3025595/code-golf-zigzag-pattern-scanning
// but this is not a shorter one ;]
@goker-dev
goker-dev / TimeAgo.markdown
Created September 18, 2013 21:20
A Pen by goker.

TimeAgo

It is native Javascript function for automatically updating fuzzy timestamps (e.g. "8 minutes ago").

A Pen by goker on CodePen.

License.

@goker-dev
goker-dev / index.html
Created January 5, 2013 19:56
A CodePen by goker cebeci. click to draw - HTML5 canvas drawing with mouse and touch events.
<canvas id="canvas"></canvas>
<div id="go">[ CLICK/TAP TO DRAW ]</div>