Skip to content

Instantly share code, notes, and snippets.

@Venkateshwaran
Venkateshwaran / index.html
Last active April 20, 2024 16:14
Simple Wiki Search Using AngularJS, WebAPI (Speech recognition) and WikiAPI
<div ng-app="smartWiki" ngcloak>
<div ng-controller="WikiCtrl">
<div class="container">
<br>
<br>
<br><br>
<br>
<br>
<h1 class="header strong center blue-text">Sm<i class="material-icons medium">search</i>rt Wiki</h1>
@cayter
cayter / repository.ts
Last active April 20, 2024 16:14
Drizzle ORM Type-Safe Repository With PgTable
import { startSpan } from "@sentry/remix";
import type { StartSpanOptions } from "@sentry/types";
import {
type AnyColumn,
type AnyTable,
type BuildQueryResult,
type DBQueryConfig,
type DrizzleTypeError,
type Equal,
type ExtractTablesWithRelations,
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active April 20, 2024 16:14
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@jordangarrison
jordangarrison / doom-emacs-python-black-formatter.el
Created May 28, 2020 16:53
Python Black Formatter with Emacs Doom
;; Python Black Formatter
;; package.el
(package! python-black)
;; config.el
(use-package! python-black
:demand t
:after python)
(add-hook! 'python-mode-hook #'python-black-on-save-mode)
@fredjoseph
fredjoseph / AwesomeCliApps.md
Last active April 20, 2024 16:09
Awesome CLI/Terminal Apps

Awesome Apps

  • description: Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, fish, tmux, IPython, Awesome, i3 and Qtile.
  • language: Python
  • description: If you like the interface of HTTPie but miss the features of curl, curlie is what you are searching for. Curlie is a frontend to curl that adds the ease of use of httpie, without compromising on features and performance. All curl options are exposed with syntax sugar and output formatting inspired from httpie.
  • language: Go
@ruanyf
ruanyf / mtr.css
Created March 16, 2019 11:23
mtr.css: Hong Kong MTR station colors http://metrocolor.live/index.html
:root {
--heng-fa-chuen: #b51921;
--tai-koo: #b2103e;
--kowloon-bay: #c41832;
--tseung-kwan-o: #ef342a;
--wui-kai-sha: #a84d18;
--po-lam: #f68f26;
--sai-wan-ho: #faca07;
--disneyland-resort: #07594a;
--skek-kip-mei: #4ba946;
@tenzyus006
tenzyus006 / Excel_Functions.xlsx
Last active April 20, 2024 16:15
Excel Functions
vlookup/hlookup/xloookup
basic aggregation
variance/standard deviation
sumif and sumifs / countif and countifs
concatenation
Create checklist/dropdownlist
@jcberthon
jcberthon / networkmanager-wifi-powersave.md
Last active April 20, 2024 16:07
NetworkManager Wi-Fi powersaving configuration

NetworkManager WiFi Power Saving

NetworkManager supports WiFi powersaving but the function is rather undocumented.

From the source code: wifi.powersave can have the following value:

  • NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value
  • NM_SETTING_WIRELESS_POWERSAVE_IGNORE (1): don't touch existing setting
  • NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave
@tindy2013
tindy2013 / _subconverter_configs.md
Last active April 20, 2024 16:05
subconverter_configs

This is a gist repository for some external configs for subconverter, you can use the raw address of the following INIs to generate a specified set of rules, groups and/or scripts.

@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active April 20, 2024 16:04
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m

\u001b is the unicode escape for ESCAPE/ESC, meant to be used in the source of your bot (see ). If you wish to send colored text without using your bot you need to copy the character from the website.