Keybase proof
I hereby claim:
- I am brad-jones on github.
- I am bradjones (https://keybase.io/bradjones) on keybase.
- I have a public key ASCTchBbxm2cbiSY41DxpQVSFARWzcWGFRZ2FGfuj4_TzQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
FROM alpine:latest AS devel | |
RUN apk --no-cache add git | |
RUN mkdir /app | |
RUN touch /app/foo | |
FROM scratch AS runtime | |
COPY --from=devel /app/. /app |
#!/usr/bin/env bash | |
set -eo pipefail; | |
echo "Fedora Systemd-Boot Kernel Update Script"; | |
echo "================================================================================"; | |
latestVmlinuz="$(ls -t /boot/vmlinuz* | head -1)"; | |
latestVersion="$(echo $latestVmlinuz | sed -e 's~/boot/vmlinuz-~~' -e 's~.x86_64~~')"; | |
echo "Installing latest kernel ($latestVersion) into systemd-boot"; |
After initially starting with golang, I found it very refreshing, it's super fast, has a great supportive toolset, fantatsic IDE integrations, super duper easy cross compilation and so on.
After some time though, especially after building some more complex apps and libraries, I started to feel like I was in a giant mess of go code, sure it worked but many of the princiapls that have been so foundational in other languages, like loose coupling, dependency injection, inversion of control, even simple things like package structure and namespacing seem to have
const semver = require('semver'); | |
const browserslist = require('browserslist'); | |
const polyFillService = require('polyfill-service'); | |
function browserVersionMatches(browsersListVersion, polyFillServiceVersion) | |
{ | |
// Do some quick and easy checks first | |
if (browsersListVersion === polyFillServiceVersion) return true; | |
if (polyFillServiceVersion === '*') return true; | |
if (browsersListVersion === 'all') return true; |
import * as ts from 'typescript'; | |
import TsSimpleAst, { TypeGuards, GetAccessorDeclaration, SetAccessorDeclaration, PropertyDeclaration, Type, TypeNode, Node, TypedNode, Scope } from "ts-simple-ast"; | |
let ast = new TsSimpleAst | |
({ | |
tsConfigFilePath: __dirname + '/tsconfig.options.json', | |
compilerOptions: { outDir: __dirname + '/dist' } | |
}); | |
ast.addSourceFiles(__dirname + '/src/**/*{.d.ts,.ts}'); |
using System; | |
using Xunit; | |
using Microsoft.AspNetCore.Razor.Language; | |
using Microsoft.AspNetCore.Razor.Language.Extensions; | |
using Microsoft.Extensions.PlatformAbstractions; | |
using Microsoft.AspNetCore.Mvc.Razor.Extensions; | |
namespace Tests.Razor | |
{ | |
public class RazorTests |
FROM microsoft/dotnet:latest | |
# Install Node.js repo | |
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - | |
# Install the VsCode repo | |
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg && \ | |
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg && \ | |
echo "deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list |
// ==UserScript== | |
// @name bitbucket.com User Script | |
// @version 0.1 | |
// @description Copies the source branch name into the PR Title. | |
// @author Brad Jones | |
// @include https://bitbucket.org/* | |
// ==/UserScript== | |
$(document).ready(function() | |
{ |
{ | |
"require": { | |
"goaop/parser-reflection": "^1.0", | |
"symfony/console": "^3.0" | |
} | |
} |