Skip to content

Instantly share code, notes, and snippets.

View AlekseyPleshkov's full-sized avatar
:octocat:
Hi!

Aleksey Pleshkov AlekseyPleshkov

:octocat:
Hi!
View GitHub Profile
@paulz
paulz / ActionSpec.swift
Last active November 14, 2024 17:09
Make UIAction handler accessible for testing
import Quick
import Nimble
class ActionSpec: QuickSpec {
override func spec() {
describe("UIAction") {
it("should invoke handler") {
waitUntil { done in
let action = UIAction(title: "a title") { action in
done()
@DreaMinder
DreaMinder / A Nuxt.js VPS production deployment.md
Last active February 7, 2026 12:23
Deployment manual for a real-world project built with nuxt.js + koa + nginx + pm2

Example of deployment process which I use in my Nuxt.js projects. I usually have 3 components running per project: admin-panel SPA, nuxt.js renderer and JSON API.

This manual is relevant for VPS such as DigitalOcean.com or Vultr.com. It's easier to use things like Now for deployment but for most cases VPS gives more flexebillity needed for projects bigger than a landing page.

UPD: This manual now compatible with nuxt@2.3. For older versions deployment, see revision history.


Let's assume that you have entered fresh installation of Ubuntu instance via SSH. Let's rock:

@AnatoliyKhaulin
AnatoliyKhaulin / geo.json
Created March 2, 2018 11:09
Yandex Map geoObjects custom balloon and pin
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tanner0101
tanner0101 / swift-4.1-macos.md
Created January 31, 2018 01:42
Swift 4.1 on macOS
  1. Download latest "Swift 4.1 Development" snapshot from Swift.org Snapshots.
  2. Open downloaded .pkg file to install.
  3. Xcode > Toolchains > Swift 4.1 Snapshot
@egorsmkv
egorsmkv / metrials-go.md
Last active March 5, 2026 11:06
Материалы по Go (golang): мануалы, статьи, книги и ссылки на сообщества

Материалы по Go (golang)

На русском языке

Мануалы и туториалы

  • [Введение в программирование на Go][1]
  • [Маленькая книга о Go][3]
  • [Эффективный Go][2]
  • Есть еще [Краткий пересказ Effective Go на русском языке][4], но 2009 года