Skip to content

Instantly share code, notes, and snippets.

View fatihyildizhan's full-sized avatar
🎯
Focusing

Fatih YILDIZHAN fatihyildizhan

🎯
Focusing
View GitHub Profile
@samdods
samdods / UIView+NibLoading.swift
Last active July 31, 2018 21:07
This is the best way I've found to instantiate a view from a nib in Swift.
//
// UIView+NibLoading.swift
// Sam Dods on 29/10/2015.
//
import UIKit
/// Protocol to be extended with implementations
protocol UIViewLoading {}
drc-cli stop
sleep 1
rm -r .drccore
drcd -daemon
echo "step 5: sleep"
for i in {10..1}
do
echo "Waiting! Remaining ${i}s";
sleep 1
done
@DimaVartanian
DimaVartanian / CrashlyticsSwift.Swift
Last active June 8, 2019 10:16
Crashlytics CLS_LOG() in Swift
//
// Created by Dima Vartanian on 10/29/15.
//
import Foundation
import Crashlytics
// this method gives us pretty much the same functionality as the CLS_LOG macro, but written as a Swift function, the only differences are that we have to use array syntax for the argument list and that we don't get see if the method being called is a class method or an instance method. We also have to define the DEBUG compiler flag with -D DEBUG.
/// Usage:
///
@gokselpirnal
gokselpirnal / gang.js
Last active April 27, 2020 18:30
thecrims-bot
var getRobberies = function(done){
console.log('%c Soygun seçiliyor.','background: black; color: white')
$.ajax({
type: "GET",
url: 'https://www.thecrims.com/api/v1/robberies',
success: function(res){
done(res.single_robberies
.filter(robbery => robbery.successprobability == 100)
.sort((a, b) => b.difficulty - a.difficulty)
.find((x, index) => index == 0))
@ozlerhakan
ozlerhakan / docker-kurulumu.adoc
Last active September 7, 2022 14:54
Docker Kurulum Adımları

Docker Kurulumu

Linux

Linux dağıtımlarında Docker kullanma noktasında aşağıdaki uygun dağıtımın docker dokümantasyonunu takip ederek kurma ve çalıştırma işlemini gerçekleştirebilirsiniz. Linux dağıtımlarının Docker CE bağlantıları:

@amimaro
amimaro / BulmaToggleModal
Last active October 11, 2022 13:06
Toggle Bulma Modal with Angular 5
Toggle Bulma Modal with Angular 5
@ozgurshn
ozgurshn / SwiftUIPaywall.swift
Last active March 9, 2023 08:46
Swift UI Wrapper for RevenueCat's Swift Paywall
//
// SwiftUIPaywall.swift
// PhotoText
//
// Created by Ozgur Sahin on 8/27/20.
// Copyright © 2020 com.ozgur. All rights reserved.
//
import SwiftUI
import Purchases
@co3moz
co3moz / list.txt
Last active March 29, 2023 10:09
stargate sg-1 episode skip or not list
A) just-skip
B) crappy episode
C) maybe watch or just skip all
D) maybe watch or skip some parts
E) non-important episode but not bad one
F) important episode but skipping is sometimes required
1.3rd / S1E4 (A)
1.5th / S1E6 (C, god-dilemma stuff)
1.15th / S1E16 (C, trial stuff)
@sheharyarn
sheharyarn / request.js
Last active August 24, 2023 14:55
Axios Request Wrapper for React (https://to.shyr.io/axios-requests)
/**
* Axios Request Wrapper
* ---------------------
*
* @author Sheharyar Naseer (@sheharyarn)
* @license MIT
*
*/
import axios from 'axios'
@fatihyildizhan
fatihyildizhan / traefikv2-gzip-compression.txt
Last active October 4, 2023 13:51
Traefik v2 - How to enable gzip compression
### Traefik v2 docker-compose.yml
version: '3.7'
services:
traefik:
image: traefik:v2.2.7
container_name: traefik
labels: