Skip to content

Instantly share code, notes, and snippets.

View marcus-sa's full-sized avatar
💭
🏋️‍♂️ + 🥩 + 🥊 + 🔊 + 🖥️ = ❤️

Marcus S. Abildskov marcus-sa

💭
🏋️‍♂️ + 🥩 + 🥊 + 🔊 + 🖥️ = ❤️
View GitHub Profile
@marcus-sa
marcus-sa / index.js
Created February 27, 2018 17:19
Loading Screen
import React, { Component } from 'react'
import { observer, inject } from 'mobx-react'
import * as utils from '../../../utils'
import Game from '../../Game'
import { Image, Progress, Message, Container } from './styled'
@inject(stores => stores.loadingScreen)
@observer
@marcus-sa
marcus-sa / Feathers.js
Last active February 1, 2018 18:27
Feathers Provider for AdonisJS
'use strict'
const _ = require('lodash')
const path = require('path')
const { ioc } = require('@adonisjs/fold')
const feathers = require('@feathersjs/feathers')
module.exports = class Feathers {
constructor(Config, Env, Helpers) {
var superagent = require('superagent');
if (!String.prototype.startsWith) {
String.prototype.startsWith = function(search, pos) {
return this.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
}
}
var methods = ['get', 'post', 'put', 'patch', 'del'];
<?php
$db_host = 'localhost';
$db_name = 'testdb';
$db_charset = 'utf8mb4';
$db_username = 'root';
$db_password = '';
try {
$db = new PDO('mysql:host='.$db_host.';dbname='.$db_name.';charset='.$db_charset, $db_username, $db_password);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

Keybase proof

I hereby claim:

  • I am marcus-sa on github.
  • I am marcussa (https://keybase.io/marcussa) on keybase.
  • I have a public key ASDminMVQERLycG1DDUERhKv_gYGgjbIz8Nih9vhvICZ9Ao

To claim this, I am signing this object: