Skip to content

Instantly share code, notes, and snippets.

@rahulpnath
rahulpnath / Readme.md
Last active April 27, 2022 15:16
Cypress Azure AD Login
@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 March 24, 2024 21:13
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"
)