Skip to content

Instantly share code, notes, and snippets.

View mertkahyaoglu's full-sized avatar
👾

Mert Kahyaoğlu mertkahyaoglu

👾
View GitHub Profile
@mertkahyaoglu
mertkahyaoglu / gist:4c3626f095c663ff801d
Created March 30, 2015 22:12
Gulpfile for React Webapp
var gulp = require('gulp'),
browserify = require('browserify'),
del = require('del'),
reactify = require('reactify'),
source = require('vinyl-source-stream'),
uglify = require('gulp-uglify'),
connect = require('gulp-connect'),
streamify = require('gulp-streamify'),
cssmin = require('gulp-minify-css'),
rename = require('gulp-rename');
@mertkahyaoglu
mertkahyaoglu / gulp-webapp.js
Last active August 29, 2015 14:26
Gulp for webapp (Node Server + Browserify + Less)
// npm install --global gulp to use from terminal
// npm install gulp for a project
var gulp = require('gulp'),
browserify = require('browserify'),
source = require('vinyl-source-stream'),
nodemon = require('gulp-nodemon'),
livereload = require('gulp-livereload'),
uglify = require('gulp-uglify'),
streamify = require('gulp-streamify'),
@mertkahyaoglu
mertkahyaoglu / gulp-webapp.js
Created August 10, 2015 10:20
Gulp for webapp (Node + LESS + BrowserSync)
// npm install --global gulp to use from terminal
// npm install gulp for a project
var gulp = require('gulp'),
browserify = require('browserify'),
source = require('vinyl-source-stream'),
nodemon = require('gulp-nodemon'),
uglify = require('gulp-uglify'),
streamify = require('gulp-streamify'),
less = require('gulp-less'),
@mertkahyaoglu
mertkahyaoglu / test.pl
Last active November 18, 2015 00:04
Bioinformatic Midterm Question
#!/usr/bin/perl
my $DNA = <>;
myfnc(\$DNA);
sub myfnc {
my ($dna) = @_;
if(${$dna} =~ /atg/) {
${$dna} =~ s/atg/ATG/g;
#!/usr/bin/perl
# Komut: ./ales.pl
$interval = 300;
while (1) {
check();
sleep($interval);
}
require 'json'
require 'yaml'
require 'pathname'
# Jekyll plugin that auto-generates the `db.json` of a Jekyll project
module JekyllExport
class Generator < Jekyll::Generator
def generate(site)
File.open("db.json", "w") do |f|
@mertkahyaoglu
mertkahyaoglu / readme.md
Last active August 24, 2016 22:15
Jekyll Admin Initial Release
layout title date author categories
news_item
Jekyll Admin Initial Release
2016-08-23 13:21:02 -0700
mertkahyaoglu
community

Jekyll's Google Summer of Code Project has come to its end. The anticipated admin panel for Jekyll finally made its first release. After a hard work of three months with my dear mentors @benbalter, @jldec and @parkr, I'm proud to announce that we are releasing Jekyll Admin.

@mertkahyaoglu
mertkahyaoglu / routine.go
Created December 21, 2016 21:12
Go routine example
package main
import (
"fmt"
"time"
)
func count(id int) {
for i := 0; i < 10; i++ {
@mertkahyaoglu
mertkahyaoglu / card.css
Created December 31, 2016 08:05
Awesome Card CSS
.card {
padding: 10px;
display: block;
background: white;
border-radius: 6px;
box-shadow: 0px 2px 8px 2px rgba(0, 0, 0, 0.08);
margin-bottom: 30px;
}
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;