Skip to content

Instantly share code, notes, and snippets.

View fselcukcan's full-sized avatar
🗾

Faruk Selçuk Can fselcukcan

🗾
  • EPAM Systems
  • Kraków
View GitHub Profile
@fselcukcan
fselcukcan / gist:2a098924dfe3bbee51d4
Created November 7, 2015 07:48
Navigator with renderScene
'use strict';
var React = require('react-native');
var {
AppRegistry,
Navigator,
StyleSheet,
Text,
View,
} = React;
var gulp = require('gulp');
var browserify = require('browserify');
var watchify = require('watchify');
var source = require('vinyl-source-stream');
var reactify = require('reactify');
var production = process.env.NODE_ENV === 'production';
function scripts(watch) {
var bundler, rebundle;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
div {
border-width: 2px;
border-style: solid;
}
<div class="nav clearfix">
<ul class="left">
<li><a href="#home">Logo</a></li>
</ul>
<ul class="right">
<li><a href="#home" class="active">Home</a></li>
<li><a href="#news">Mesajlaşma</a></li>
<li><a href="#contact">Kayıt</a></li>
<li><a href="#contact">Giriş</a></li>
</ul>
@fselcukcan
fselcukcan / gl-matrix.js
Last active May 16, 2019 07:02
webgl & draw video on canvas 2d
/**
* @fileoverview gl-matrix - High performance matrix and vector operations
* @author Brandon Jones
* @author Colin MacKenzie IV
* @version 2.4.0
*/
/* Copyright (c) 2015, Brandon Jones, Colin MacKenzie IV.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@fselcukcan
fselcukcan / .emacs
Last active June 4, 2019 17:25
my emacs config
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(custom-set-variables
@fselcukcan
fselcukcan / index.js
Created May 25, 2019 19:58
hapi file-upload and save to file
'use strict';
const Hapi = require('@hapi/hapi');
const util = require('util');
const fs = require("fs");
const readFile = util.promisify(fs.readFile);
const writeFile = util.promisify(fs.writeFile);
function bootstrap_db () {
@fselcukcan
fselcukcan / reverse.cl
Last active May 31, 2019 21:38
reverse
(defun reverse (l acc)
(cond
((null l) acc)
(t (reverse (cdr l) (cons (car l) acc)))))
; (reverse '(7 5 1 3)) => (3 1 5 7)