Skip to content

Instantly share code, notes, and snippets.

View AzMoo's full-sized avatar

Matt Magin AzMoo

  • Adelaide, Australia
View GitHub Profile

Keybase proof

I hereby claim:

  • I am azmoo on github.
  • I am mattmagin (https://keybase.io/mattmagin) on keybase.
  • I have a public key ASAth0wsTqCJurGVMjHggMJMmxKoIiss9nJ124fyJBVq6Ao

To claim this, I am signing this object:

[tool.poetry]
name = "poetry-test"
version = "0.1.0"
description = ""
authors = ["AzMoo"]
[tool.poetry.dependencies]
python = "^3.7"
cairocffi = "^1.0"
data class MyDataClass(val first: String, val second: String) {
val third = "$first $second"
}
// This errors with expected type `hyper::Uri`
let uri = "https://icanhazdadjoke.com/"
let work = client.get(uri).map(|res| {
println!("Response: {}", res.status());
});
// This works
let uri = "https://icanhazdadjoke.com/".parse().unwrap();
let work = client.get(uri).map(|res| {
println!("Response: {}", res.status());
@AzMoo
AzMoo / omg.py
Created February 16, 2017 01:04
class Document(Base):
__tablename__ = 'IDH'
document = Column(String(11), primary_key=True)
svc_doc = Column(String(11))
document_lines = relationship(
"DocumentLine", back_populates="document_header")
def __repr__(self):
[matrix]
host = "2001:DB8::312:555:0690" # Host to listen on for Matrix connections. Omit
# to listen on all interfaces.
port = 1999 # Port to listen on for Matrix connections.
# Defaults to 1999.
[sentry]
dsn = "https://123:456@sentry.example.com/1" # DSN for logging to Sentry.
# Sentry disabled if omitted.
---
classes:
- postgresql::server
postgresql::globals::manage_package_repo: true
postgresql::globals::version: '9.4'
postgresql::server::db:
sharereg2016:
user: 'sharereg2016'
var webpack = require("webpack")
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: ['bootstrap-loader', 'clipboard', 'whatwg-fetch', 'es6-promise', "./js"],
output: {
path: "./dealerpro_helpers/static/build/",
filename: "bundle.js",
publicPath: "/static/build/"
},
@AzMoo
AzMoo / index.js
Created September 26, 2016 00:31
if(window.location.pathname == '/vehicles/standard-fields/') {
require.ensure(['./vehicles/standard-fields/main'], function(require){
var standard_fields = require('./vehicles/standard-fields/main')
standard_fields.default()
})
} else if(window.location.pathname == '/service/bom-builder/') {
require.ensure(['./service/bom-builder/main'], function(require){
var bom_builder = require('./service/bom-builder/main')
bom_builder.default()
image: alpine
before_script:
- apk add openssh --update
deploy:
stage: deploy
script:
- mkdir -p ~/.ssh
- echo -e $SSH_KNOWN_HOSTS > ~/.ssh/known_hosts