Skip to content

Instantly share code, notes, and snippets.

💭
😼

Lucas Garron lgarron

💭
😼
Block or report user

Report or block lgarron

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lgarron
lgarron / index.md
Created Feb 4, 2019
Example Solves
View index.md
View js-cubing.md

JS Cubing

if [ ! -d "alg" ]; then
   git clone https://github.com/cubing/alg.js       alg
fi
if [ ! -d "kpuzzle" ]; then
   git clone https://github.com/cubing/kpuzzle.js   kpuzzle
fi
if [ ! -d "twisty" ]; then
   git clone https://github.com/cubing/twisty.js    twisty
View checkout-chromium-preload-list.sh
#!/usr/bin/env bash
# Setup script for a checkout of the Chromium HSTS preload list.
# Source -> medium.com/p/8c8896f5cef3 and gist.github.com/hemanth/7611535
echo "---- Creating folder and initializing a git repository. ----"
mkdir chromium-hsts && cd chromium-hsts
git init
echo "---- Adding chromium remote and initializing sparse checkout of /net/http. ----"
git remote add origin https://chromium.googlesource.com/chromium/src
View ѕрооғ.badssl.com.csr
-----BEGIN CERTIFICATE REQUEST-----
MIIC9DCCAdwCAQAwbjELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWEx
FjAUBgNVBAcMDVNhbiBGcmFuY2lzY28xDzANBgNVBAoMBkJhZFNTTDEhMB8GA1UE
AwwYeG4tLW4xYWFlN2Y3by5iYWRzc2wuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAwgTs+IzuBMKz2FDVcFjMkxjrXKhoSbAitfmVnrErLHY+bMBL
YExM6rK0wA+AtrD5csmGAvlcQV0TK39xxEu86ZQuUDemZxxhjPZBQsVG0xaHJ590
6wqdEVImIXNshEx5VeTRa+gGPUgVUq2zKNuq/27/YJVKd2s58STRMbbdTcDE/FO5
bUKttXz+rvUV0jNI5yJxx8IUemwo6jdK3+pstXK0flqiFtxpsVdE2woSq97DD0d0
XEEi4Zr5G5PmrSIGKS6xukkcDCeeo/uL90ByAKySCNmMV4RTgQXL5v5rVJhAJ4XH
ELtzcO9pGEEHRVV8+WQ/PSzDqXzrkxpMhtHKhQIDAQABoEEwPwYJKoZIhvcNAQkO
View Braille ASCII loading animation
⠁⠃⠂⠆⠄⠤⠠⠰⠐⠘⠈⠉
Inspired by https://github.com/typings/typings
@lgarron
lgarron / replace.fish
Last active Apr 5, 2017
Replace using `ag` and `sed` in fish
View replace.fish
# brew install gsed
for file in (ag -i -l "PageInfoPopupView" .)
echo $file
gsed --in-place="" "s/PageInfoPopupView/PageInfoBubbleView/g" $file
end
View no-common-name
-----BEGIN CERTIFICATE REQUEST-----
MIIC1zCCAb8CAQAwUDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWEx
FTATBgNVBAcMDFdhbG51dCBDcmVlazEVMBMGA1UECgwMTHVjYXMgR2Fycm9uMIIB
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwgTs+IzuBMKz2FDVcFjMkxjr
XKhoSbAitfmVnrErLHY+bMBLYExM6rK0wA+AtrD5csmGAvlcQV0TK39xxEu86ZQu
UDemZxxhjPZBQsVG0xaHJ5906wqdEVImIXNshEx5VeTRa+gGPUgVUq2zKNuq/27/
YJVKd2s58STRMbbdTcDE/FO5bUKttXz+rvUV0jNI5yJxx8IUemwo6jdK3+pstXK0
flqiFtxpsVdE2woSq97DD0d0XEEi4Zr5G5PmrSIGKS6xukkcDCeeo/uL90ByAKyS
CNmMV4RTgQXL5v5rVJhAJ4XHELtzcO9pGEEHRVV8+WQ/PSzDqXzrkxpMhtHKhQID
AQABoEIwQAYJKoZIhvcNAQkOMTMwMTAJBgNVHRMEAjAAMCQGA1UdEQQdMBuCGW5v
View no-subject
-----BEGIN CERTIFICATE-----
MIIEMjCCAhqgAwIBAgIJAJTDWlDByBsuMA0GCSqGSIb3DQEBCwUAMH8xCzAJBgNV
BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1TYW4gRnJhbmNp
c2NvMQ8wDQYDVQQKDAZCYWRTU0wxMjAwBgNVBAMMKUJhZFNTTCBJbnRlcm1lZGlh
dGUgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MB4XDTE3MDMxNjIxMzc1OFoXDTE5MDMx
NjIxMzc1OFowADCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANha8llF
sU36X+ITw2ZX19h8jeKotuqSZODI/GM43Log7yvepkDOQPP5Xz7wCG5WAopV35TB
rD81nA4qivlEsdaih4DQuGizm/WAGWWpS7/0uVthRi2Q3+rm/saEKNIxGr+IHMJY
yPh2jIJofnYFMmVzVy2i7mrZmb+ji4cFR5YMV+vb53m7yBGiH8YIsNsKAwMbflzy
1BWX81sRq9F4V1I1htqzlkaZHQD9ug3InEEBWAt9Mr8+qTGRAmxBiMLHBciXUlhD
View 2^((nBits `div` 2) - 100) apart
In[121]:= p = NextPrime[RandomInteger[{2^2047, 2^2048}]]
Out[121]= \
2472858022210415099164045402553368874951528885035736322800760410002954\
4038243222193098931418739578329762267040841916783150979034128645102130\
0253513299160810798121444406865510009715543992322555089967015541632378\
0710135209985817236443936777772937122422269799403563157416882656645382\
0161318776579572843028782784167357793642890306031876148210563553196737\
6550335038180588177627102411796625979142817323054655605301722206159897\
4290495880080776782541535829627114438988359115159634994645719944873859\
@lgarron
lgarron / Algorithms.md
Last active Jun 14, 2018
Algorithm Representation
View Algorithms.md

In the example below, a "group" is a sequence of moves surrounded in parentheses.

Design goal

A representation of algorithms in JSON that also maps to native data structures and classes in most programming languages.

Desirable properties:

  1. Easy to represent in a programming language with lists and "classes" (objects with pre-defined patterns of properties).
  2. The data structures are straightforward to flatten to/from JSON.
You can’t perform that action at this time.