Skip to content

Instantly share code, notes, and snippets.

View askn's full-sized avatar
🤔
[object Function]

Aşkın Gedik askn

🤔
[object Function]
View GitHub Profile
class Polinom:
def __init__(self, katsayilar):
self.katsayilar = katsayilar
def __str__(self):
denklem = []
for index, katsayi in enumerate(self.katsayilar):
us = len(self.katsayilar) - index - 1
if katsayi != 0:
if katsayi != 1:
import copy
def determinant(liste):
sonuc = 0
if(len(liste) == 1):
return liste[0][0]
if(len(liste) == 2): #dogru
# 2li matrisin determinanti
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def f(x):
return x ** 2
def main(x, y, n):
aralik = float(y - x) / n
L = 0
@askn
askn / main.go
Last active December 29, 2015 07:09
password card
package main
import (
"fmt"
"github.com/ActiveState/golor"
"math/rand"
"strings"
)
type PasswordCard struct {
@askn
askn / src.go
Created December 19, 2013 21:30
package main
import (
"bytes"
"fmt"
"os"
"os/exec"
"path/filepath"
"regexp"
"strings"

Keybase proof

I hereby claim:

  • I am askn on github.
  • I am askn (https://keybase.io/askn) on keybase.
  • I have a public key whose fingerprint is 02C0 D7CB 83D2 6415 0E36 ECCA B27F CE99 5DA3 C879

To claim this, I am signing this object:

Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

This is where any fun you might have been having ends. Now it’s time to get serious and talk about rules.

Writing CSS is hard. Even if you know all the intricacies of position and float and overflow and z-index, it’s easy to end up with spaghetti code where you need inline styles, !important rules, unused cruft, and general confusion. This guide provides some architecture for writing CSS so it stays clean and ma

tr:
admin:
js:
true: Doğru
false: Yanlış
is_present: Mevcut
is_blank: Boş
date: Tarih ...
between_and_: ... ile ... arası
today: Bugün
@askn
askn / devise.tr.yml
Created December 11, 2015 12:35 — forked from cihad/devise.tr.yml
Turkish translations for Devise
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
tr:
devise:
confirmations:
confirmed: "Eposta adresiniz başırılı bir şekilde onaylandı."
send_instructions: "Bir kaç dakika içerisinde eposta adresinizi nasıl onaylayacağınız hakkında bir eposta alacaksınız."
send_paranoid_instructions: "Eğer eposta adresinizi veritabanımızda kayıtlı ise bir kaç dakika içerisinde eposta adresinizi nasıl onaylayacağınız hakkında bir eposta alacaksınız."
failure:
already_authenticated: "Zaten giriş yaptınız."
@askn
askn / nginx.conf
Created April 11, 2016 06:39 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048