Skip to content

Instantly share code, notes, and snippets.

View ctrlShiftBryan's full-sized avatar

Bryan Arendt ctrlShiftBryan

View GitHub Profile
@rxaviers
rxaviers / gist:7360908
Last active April 27, 2026 10:56
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@lefthandedgoat
lefthandedgoat / gist:18464c3a14e5b98c24a5
Last active January 11, 2018 12:45
What to talk about in a canopy presentation
  • People (usually no F# exposure) always want to understand what &&& is ex:
    • "Some test" &&& fun _ -> url "http://www.google.com"
    • To explain this I teach them about infix operators which also helps with them understand why you can do "#name" == "Bob" and with |>
  • Its good to point out that canopy uses selenium and does not hide it at all. If you need to do something that canopy does not support, you can google for it and take the example and convert it to f#. browser is the instance of ISeleniumWebDriver
  • UI Automation works really well but is a pain because its sometimes more precise that people care about. It will uncover subtle bugs that people often time don't want to research and fix =(
  • A great property of F# is that the most recent definition of a function is the one that is used. This lets you 'override' core functionality with some that is better for you. ex if you dont like how displayed works, you can create your own version and put it in a module and open it after op
@MikeNGarrett
MikeNGarrett / wp-config.php
Last active April 20, 2026 12:00
All those damned wp-config constants you can never remember.
<?php
// PHP memory limit for this site
define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit.
// Database
define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database.
define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users)
// Explicitely setting url
@DoggettCK
DoggettCK / base_n.exs
Last active August 25, 2016 20:09
Generates encode and decode methods for base 2->62
for {base, name} <- (2..62 |> Enum.map(&({&1, "Base#{&1}" |> String.to_atom}))) do
# NOTE: Modules will be named :Base2, :Base3, ..., :Base62
defmodule name do
@moduledoc """
Automatically generated #{name} encode/decode functions
"""
@base base
@alphabet [?0..?9, ?a..?z, ?A..?Z]
|> Enum.flat_map(fn x -> x end)
|> to_string
@ghaiklor
ghaiklor / iterm-fish-fisherman-meslo-osx.md
Last active July 18, 2024 08:26
iTerm 2 + fish + fisherman + Material Design + Meslo

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@agzam
agzam / all ex commands.org
Last active September 14, 2022 14:36
All ex commands
e[dit]evil-edit
w[rite]evil-write
wa[ll]evil-write-all
sav[eas]evil-save
r[ead]evil-read
b[uffer]evil-buffer
bn[ext]evil-next-buffer
bp[revious]evil-prev-buffer
bN[ext]bprevious
sb[uffer]evil-split-buffer
[
{
"name": "Iris Keyboard",
"author": "Lewis Ridden"
},
[
{
"x": 3,
"c": "#c4c8c5",
"a": 5
@mazz
mazz / docker-compose.yml
Last active June 9, 2020 14:36
phoenix project with traefik
# https://docs.docker.com/compose/compose-file/
version: '3.7'
services:
app_name:
build: .
depends_on:
- postgres
environment:
DATABASE_URL: ecto://app_name:app_name@postgres/app_name
HOSTNAME: localhost
@scottopolis
scottopolis / apppresser-iap-memberpress.php
Last active April 13, 2022 17:12
Add user to MemberPress after in app purchase, and cancel for AppPresser
<?php
/*
Plugin Name: In App Purchases for MemberPress
Plugin URI: https://apppresser.com
Description: This plugin listens for in app purchases or cancellations and adds/removes members from a membership level.
Version: 2.0.0
Author: Scott Bolinger
Author URI: https://apppresser.com
License: GPLv2
*/