Skip to content

Instantly share code, notes, and snippets.

@rahulpnath
rahulpnath / Readme.md
Last active April 27, 2022 15:16
Cypress Azure AD Login
@frank-dspeed
frank-dspeed / 2018-https-localhost.md
Last active April 16, 2026 20:02 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

Create a own domain (1-10 Domains No Wildcards)

edit /etc/hosts add my.

@sxywu
sxywu / .block
Last active April 28, 2018 16:34
Updated React+D3, Approach #1
license: mit
@markvincze
markvincze / Bitbucket-filesearch-tweak.css
Created January 5, 2017 07:39
Make the Bitbucket file search box wider
/* Inject this to bitbucket.org with your favourite browser extension, for example Stylish. */
.omnibar-result-context, .omnibar-result-label {
max-width: 1170px;
}
.omnibar {
margin-left: -600px;
width: 1200px;
}
@sxywu
sxywu / README.md
Last active October 7, 2023 02:54
The Force with React + D3, Approach #1

React + D3 exploration with the force layout:

  • React for structure
  • D3 for data calculation
  • React for rendering

Pro:

  • Clean, easy to reason about

Con:

  • Goes through lifecycle for every tick -> will not scale
@johncant
johncant / Vagrantfile
Last active August 29, 2015 14:14
GHC 7.8.4, Cabal 1.22, Haskell, Snap, Haste and React on Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
@chrisdone
chrisdone / AnIntro.md
Last active October 11, 2025 13:03
Statically Typed Lisp

Basic unit type:

λ> replTy "()"
() :: ()

Basic functions:

@hansonkd
hansonkd / gist:3422759
Created August 22, 2012 06:06
Fay JSON
{-# LANGUAGE NoImplicitPrelude #-}
module Console where
import Language.Fay.FFI
import Language.Fay.Prelude
data MyData = MyData { xVar :: Int, yVar :: Int }
myData :: MyData
@softprops
softprops / build.sbt
Created August 16, 2011 06:53
unfiltered jsonp example
libraryDependencies ++= Seq(
"net.databinder" %% "unfiltered-jetty" % "0.4.1",
"net.databinder" %% "unfiltered-filter" % "0.4.1",
"net.databinder" %% "unfiltered-json" % "0.4.1"
)