Skip to content

Instantly share code, notes, and snippets.

View trenpixster's full-sized avatar
🙃
i̦̺̲̿̇̎͆͋̾ẗ͍̗͈͉͙́̀͐̀͐͂̀̐̕͟͡'s͉̞̱͛̀̌̐͊͌ f͐̔̄̈́̈̓̊͘̕ỉ̢̨̪͒̊̓̍͋͊̓̽n̩̑̂̃̍̔e̱̋̃͑̀͆̓͛̽

Nizar Venturini trenpixster

🙃
i̦̺̲̿̇̎͆͋̾ẗ͍̗͈͉͙́̀͐̀͐͂̀̐̕͟͡'s͉̞̱͛̀̌̐͊͌ f͐̔̄̈́̈̓̊͘̕ỉ̢̨̪͒̊̓̍͋͊̓̽n̩̑̂̃̍̔e̱̋̃͑̀͆̓͛̽
View GitHub Profile
@caksoylar
caksoylar / zen-display-improvements.md
Last active April 12, 2024 09:33
Corne-ish Zen display improvements

Display improvements for the Corne-ish Zen keyboard

This note details the changes made to the Zen and ZMK codebase to improve the experience of e-ink displays.

Getting the changes

You can test out below changes using your Zen config repo by modifying your config/west.yml file, following ZMK instructions:

manifest:
  remotes:
 - name: caksoylar
@ttimasdf
ttimasdf / fix_virtualenv
Last active September 4, 2019 15:18 — forked from tevino/fix_virtualenv
Fix python virtualenv after python update, forked version for choice of python executable
#!/usr/bin/env bash
ENV_PATH="$(dirname "$(dirname "$(which pip)")")"
SYSTEM_VIRTUALENV="$(which -a virtualenv|tail -1)"
echo "Ensure the root of current virtualenv:"
echo " $ENV_PATH"
read -p "‼️ Say no if you are not sure (y/N) " -n 1 -r
echo
PYEXC_DEF="$(sed -n '1s/^#!//p' $SYSTEM_VIRTUALENV)"
read -p "🐍 Choose which python to use? [$PYEXC_DEF] " PYEXC
@CYBAI
CYBAI / chapter3.purs
Last active June 16, 2019 01:22
PureScript By Example Exercises
module Exercise where
import Prelude
import Data.AddressBook
import Data.Functor ((<$>))
import Data.List (filter, head, null, nubBy)
import Data.Maybe (Maybe)
-- 1.
@dagjaneiro
dagjaneiro / lvh_ssl.md
Last active August 5, 2021 18:00
lvh.me ssl

Install nginx

$ brew install nginx

Edit nginx.conf

$ vim /usr/local/etc/nginx/nginx.conf
@trestrantham
trestrantham / periodic_task.ex
Created January 27, 2016 05:19
Run a task periodically natively in Elixir
defmodule MyApp.Periodically do
use GenServer
def start_link do
GenServer.start_link(__MODULE__, %{})
end
def init(state) do
Process.send_after(self(), :work, 2 * 60 * 60 * 1000) # In 2 hours
{:ok, state}
@chrismccord
chrismccord / gist:c24b2b516066d987f4fe
Last active April 24, 2016 23:17
Phoenix 0.6.x to 0.7.0 Upgrade Instructions

How to upgrade to Phoenix from 0.6.x to 0.7.0.

  1. 0.7.0 depends on Plug HEAD, so you'll need to include plug in your mix deps until the next plug release:
{:plug, github: "elixir-lang/plug", ref: "7040c89cb4cf1f1c6afdee379e5982a07d77a6c3"}
```

  1. The `Pheonix.Controller` functions html/2, json/2, text/2, redirect/2 and render/3 no longer halt automatically. *Important*: You must now explicity call `halt/1` yourself if you want to stop invoking further plugs after calling these functions. This is improtant for auth filtering plugs, ie:

```elixir
@staltz
staltz / introrx.md
Last active May 20, 2024 14:59
The introduction to Reactive Programming you've been missing