Skip to content

Instantly share code, notes, and snippets.

View onbjerg's full-sized avatar

Oliver Nordbjerg onbjerg

  • Copenhagen
  • 17:31 (UTC +02:00)
  • X @onbjerg
View GitHub Profile
<?php
$water = 'H2O';
parseMolecule($water); // => ['H' => 2, 'O' => 1];
$magnesiumHydroxide = 'Mg(OH)2';
parseMolecule($magnesiumHydroxide); // => ['Mg' => 1, 'O' => 2, 'H' => 2];
$fremySalt = 'K4[ON(SO3)2]2';
parseMolecule($fremySalt); // => ['K' => 4, 'O' => 14, 'N' => 2, 'S' => 4];
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.