Skip to content

Instantly share code, notes, and snippets.

View chuckis's full-sized avatar
🔍
In the beginning was the Word,

Ruslan chuckis

🔍
In the beginning was the Word,
  • 15:47 (UTC +03:00)
View GitHub Profile

Logseq Plugin Setup Guide

[WIP] Logseq Plugin System is currently under Alpha Testing phase.

For Developers

In this short guide, it will walk you through the steps needed to set up your development environment for writing and running a hello world simple inside of Logseq Desktop Client. You know Logseq Plugin based on Web Technologies composed of JS & HTML & CSS, but neither are mandatory, you can develop plugins use any language which can be translated to javascript (Logseq made by Clojurescript!). We will use Typescript to demonstrate this sample. Because there is a type definition file to make development experience even better.

Install Node.js and NPM

@gusenov
gusenov / git-cheat-sheet.sh
Last active November 27, 2023 07:49
Шпаргалка по Git.
#---------------------------------------------------------------------
# НАСТРОЙКИ
#---------------------------------------------------------------------
# Показать глобальную конфигурацию:
git config --global --list
git config --local user.name "user name"
git config --local user.email "user@email.com"
git config --local core.fileMode false
@gireesh092
gireesh092 / database_helper.dart
Created April 6, 2019 12:23
Flutter : Database helper boiler code
import 'package:sqflite/sqflite.dart';
import 'dart:async';
import 'dart:io';
import 'package:path_provider/path_provider.dart';
import 'package:notebuddy/models/note.dart';
class DatabaseHelper {
static Database _database;
static DatabaseHelper _databaseHelper; //SINGLETON DBHELPER
@CodyReichert
CodyReichert / react-es6-flow-emacs-configuration.md
Last active May 13, 2024 07:35
Configuring Emacs for react, es6, and flow

Configuring Emacs for react, es6, and flow

For a while, JSX and new es6 syntax had flaky support in emacs, but there's been huge work on a lot of packages. Using emacs for JavaScript with React, ES6, and Flow (or Typescript, etc) is really easy and powerful in Emacs these days.

This is how you can work on modern web development projects with full support for tooling like JSX, Flow types, live eslint errors, automatic prettier.js formatting, and more.

Set up web-mode

web-mode provides most of the underlying functionality, so a huge shout-out to the maintainer(s) there.

Keybase proof

I hereby claim:

  • I am satyrius on github.
  • I am satyrius (https://keybase.io/satyrius) on keybase.
  • I have a public key ASCqBYyDDIvy2Yj556khOSWkpKP3Gr-T1r71iu7RW3_9xQo

To claim this, I am signing this object:

@brenopolanski
brenopolanski / export-svg-inkscape.md
Created December 26, 2017 13:29
Exporting an object as svg from inkscape
  1. Select the object(s) to export
  2. Open the document properties window (Ctrl+Shift+D)
  3. Select "Resize page to drawing or selection"
  4. File > Save As Copy...
  5. Select Optimized SVG as the format if you want to use it on the web
@sashachabin
sashachabin / #КР № 2 (ФО-350005, Васильев А., Чабин А.)
Last active September 30, 2021 18:57
УрФУ. Разработка бота в Telegram с Webhook. Создание админки на Flask-Admin
ФО-350005
Васильев А.М.
Чабин А.С.
Презентация:
https://docs.google.com/presentation/d/1fNtX24els90-WxOUPl1M_pt7j8pQ-TnHcSDGx08KcRc/edit?usp=sharing
Разработка бота в Telegram с Webhook. Создание админки на Flask-Admin
(продолжение доклада bit.ly/urfu_botapi)
--------------------------------------
@simoncos
simoncos / golang_on_rpi.md
Last active March 30, 2024 17:56 — forked from konradko/golang_on_rpi.md
Install Golang 1.9 on Raspberry Pi

Install Golang 1.9:

wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile

If already installed old golang with apt-get:

@vasanthk
vasanthk / System Design.md
Last active May 24, 2024 06:19
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@StuartGordonReid
StuartGordonReid / DistanceMetrics.py
Created June 15, 2015 14:36
Implementation of various distance metrics in Python
import math
import random
import csv
import cProfile
import numpy as np
import hashlib
memoization = {}