Skip to content

Instantly share code, notes, and snippets.

@jenter
jenter / Headless Lightning + BLT + DrupalVM
Last active November 20, 2018 05:15
Quick steps to create a new headless lightning project using BLT and DrupalVM
# {{PROJECTNAME}} is name of project with standard machine naming conventions (ie. no spaces or uppercase)
> composer create-project --no-interaction acquia/blt-project {{PROJECTNAME}}
> cd {{PROJECTNAME}}
> composer run-script blt-alias
> source ~/.bash_profile
> composer require acquia/headless_lightning:~1.1.0
# Edit blt/project.yml and change the project:profile:name key to 'headless_lightning'
> blt vm
# You may need to update the 'php_version' to match your local environment in box/config.yml
> blt setup
@MarcusWalz
MarcusWalz / Probability of Entry
Last active November 18, 2015 13:12
Western States 100 Lottery Simulator
entrants tickets expected_winners prob
1 1981 1981 64.98780 0.03280555
2 890 1780 57.54135 0.06465320
3 390 1560 48.80195 0.12513321
4 189 1512 44.29210 0.23434974
5 79 1264 32.71075 0.41406013
6 33 1056 21.66605 0.65654697
sums 3562 9153 270.00000 1.52754879