Skip to content

Instantly share code, notes, and snippets.

View barisesen's full-sized avatar
🏠
Working from home

Barış Esen barisesen

🏠
Working from home
View GitHub Profile
public static int uzunluk(string cumle)
{
cumle = cumle.Trim();
string[] kelimeler = cumle.Split(' ');
int max = 0;
foreach (var item in kelimeler)
{
if(item.Length > max)
max = item.Length;
using System.Linq;
static void Main(string[] args)
{
int[] array = { 10, 5, 10, 2, 2, 3, 4, 5, 5, 6, 7, 8, 9, 11, 12, 12 };
var dict = new Dictionary<int, int>();
foreach (var value in array)
{
@barisesen
barisesen / ubuntu14.04-command-line-install-android-sdk
Last active August 9, 2016 21:44 — forked from wenzhixin/ubuntu14.04-command-line-install-android-sdk
Ubuntu 14.04 command line install android sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
= truncate(@text, :length => 100, :omission => '', :separator => ',')
@barisesen
barisesen / md5-decrypt.txt
Created February 18, 2017 07:26
md5-decrypt
1847f2fa2a8e97293b0db3201ecafc34 -> pau_{37.7387013,29.092491}
@barisesen
barisesen / Admin.php
Created June 13, 2017 21:22
Laravel admin login with guard
<?php
//model
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Admin extends Authenticatable
{
<template>
<f7-page>
<f7-navbar :title="title" class="target-name" back-link="Back" sliding></f7-navbar>
<f7-messages>
<ul>
{{this.$route.params.username}}
<li v-for="(value, key) in $route.params" :key="'param-' + key"><b>{{key}}:</b> {{value}}</li>
</ul>
<f7-message v-for="message in messages"
:text="message.text"
@barisesen
barisesen / cumsum.m
Created March 28, 2018 22:30
matlab cumsum function source code !
function X = cumSumFunc(image)
[m,n] = size(image);
X = zeros(m,n);
X(1,:) = image(1,:);
for i=2:m
for j=1:n
X(i,j) = image(i,j) + X(i-1,j);
end
end
end