Skip to content

Instantly share code, notes, and snippets.

Avatar
🏴

Onur Kağan ALDEMİR onurkagan

🏴
View GitHub Profile
View worker_pattern.go
package main
import (
"fmt"
"math/rand"
"strconv"
"sync"
"time"
)
View variadic.go
package main
import "fmt"
func main() {
realHomeBoyz := []string{"Covid Hasan", "Oralet Osman"}
sayHello(realHomeBoyz...)
sayHello("Ali", "Veli")
sayHello()
}
View MainActivity.kt
package com.onurkagan.myapplication
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*;
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
View activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
tools:context=".MainActivity">
<ImageView
View netvox.go
package main
import (
"crypto/md5"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strings"
"time"
@onurkagan
onurkagan / ardinal.go
Created Dec 22, 2019
Müslüm diye bir hıyar !
View ardinal.go
package main
import (
"fmt"
"log"
"strings"
)
func main() {
err := saveAndCheck("Buralarda Müslüm diye bir hıyar varmış, biz onu arıyoruz.")