Skip to content

Instantly share code, notes, and snippets.

@enomoto
enomoto / UserDefaultsAndStructArray.swift
Created July 17, 2018 07:03
save array of struct to UserDefaults
import Foundation
struct Book: Codable {
let title: String
let author: String
}
let KeyForUserDefaults = "myKey"
func save(_ books: [Book]) {
@Nachtalb
Nachtalb / telegram-desktop-multiple-accounts.rst
Last active March 22, 2024 06:08
Add multiple accounts in Telegram Desktop [Linux | MacOSX | Windows]
@nnzo
nnzo / Get-$100-free-credit-DigitalOcean-DO-2020.md
Created March 30, 2020 10:30
$100 free credit Digital Ocean DO 2020
@nnzo
nnzo / $100 Vultr Credit Coupon 2020.md
Last active October 20, 2020 12:28
$100 Credit Vultr 2020.txt
@nnzo
nnzo / fixgembundler.md
Created April 18, 2020 05:47
gem or bundler arn't working after installing rvm? (bundler command not found, gem command not found, gem, rvm)

Have you installed ruby through RVM and gem or bundler aren't working?

Most likely you have forgotten to run source ~/.rvm/scripts/rvm.

If that doesn't work, try source /etc/profile.d/rvm.sh and restart the terminal.

Hope I helped :)