Skip to content

Instantly share code, notes, and snippets.

View boratanrikulu's full-sized avatar
🍀
Reading

Bora boratanrikulu

🍀
Reading
View GitHub Profile
type Employee struct {
Name string
Age int
Designation string
Salary int
}
func (emp Employee) ShowDetails() {
fmt.Println("User Name: ", emp.Name)
}
@yunusemredilber
yunusemredilber / build.gradle
Created August 12, 2019 21:46
turbolinks-android fix unnecessary runtime crash
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.1"
defaultConfig {
applicationId "com.example.groupath"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
@rylev
rylev / learn.md
Created March 5, 2019 10:50
How to Learn Rust

Learning Rust

The following is a list of resources for learning Rust as well as tips and tricks for learning the language faster.

Warning

Rust is not C or C++ so the way your accustomed to do things in those languages might not work in Rust. The best way to learn Rust is to embrace its best practices and see where that takes you.

The generally recommended path is to start by reading the books, and doing small coding exercises until the rules around borrow checking become intuitive. Once this happens, then you can expand to more real world projects. If you find yourself struggling hard with the borrow checker, seek help. It very well could be that you're trying to solve your problem in a way that goes against how Rust wants you to work.

@theramiyer
theramiyer / arch-arm-rpi3-b-plus.md
Last active December 1, 2025 13:22
Install Arch Linux (ARM) on Raspberry Pi 3 Model B+

Install Arch Linux (ARM) on Raspberry Pi B+

Created 17 Aug 2018

This is a simple installation that I did on my Raspberry Pi. Of course, this is only one of the many reasons to do it.

Here are my requirements:

@erdemoflaz
erdemoflaz / iletisim.html
Last active October 16, 2024 19:21
EĞİTİMDE YAPILAN HTML VE CSS KODLARI
<html>
<head>
<title>Kişisel Blog</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Righteous" rel="stylesheet">
</head>
@posener
posener / go-shebang-story.md
Last active November 18, 2025 07:09
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

@linw1995
linw1995 / WaterMark.go
Last active February 8, 2023 06:48
Using golang to mark the picture
package main
import (
"bytes"
"fmt"
"strings"
"io/ioutil"
"os"
"path"
@dvdbng
dvdbng / zsh_to_fish.py
Created December 21, 2016 18:02
Migrate zsh history to fish
import os
import re
def zsh_to_fish(cmd):
return (cmd.replace('&&', '; and ')
.replace('||', '; or '))
def is_valid_fish(cmd):
@roylee0704
roylee0704 / dockergrep.sh
Created December 9, 2016 08:24
how to grep docker log
docker logs nginx 2>&1 | grep "127."
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container
@mdang
mdang / RAILS_CHEATSHEET.md
Last active November 28, 2025 10:01
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before