Skip to content

Instantly share code, notes, and snippets.

View HashDot's full-sized avatar
🏠
Working from home

Lars Hampe HashDot

🏠
Working from home
View GitHub Profile
@HashDot
HashDot / .eslintrc.json
Created July 26, 2021 22:54
ESLint Import Order
...
'import/order': [
'error',
{
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
groups: [
'builtin',
@HashDot
HashDot / example.js
Created April 20, 2021 11:14
Mercurius Federation Upload
'use strict'
const Fastify = require('fastify')
const mercurius = require('mercurius')
const { ErrorWithProps } = mercurius
const { GraphQLUpload } = require('graphql-upload')
const fs = require('fs')
const util = require('util')
const stream = require('stream')
const path = require('path')
@HashDot
HashDot / player.js
Last active July 29, 2021 06:47
React Native - YouTube Player
import React from 'react'
import YouTube from 'react-native-youtube'
import { withNavigationFocus } from 'react-navigation'
class YTPlayer extends React.Component {
state = {
height: 215
}
handleReady = () => {
rpm --import /etc/pki/rpm-gpg/RPM*
@HashDot
HashDot / angular-bootstrap-4-tooltip-directive.js
Created December 31, 2015 03:38
Simple Angular Bootstrap 4 Tooltip Directive
.directive('toggle', function(){
return {
restrict: 'A',
link: function(scope, element, attrs){
if (attrs.toggle=="tooltip"){
$(element).tooltip();
}
if (attrs.toggle=="popover"){
$(element).popover();
}
@HashDot
HashDot / keybase.md
Last active April 12, 2017 07:44
keybase.md

Keybase proof

I hereby claim:

  • I am hashdot on github.
  • I am hashdot (https://keybase.io/hashdot) on keybase.
  • I have a public key ASBOvYrpZWKxhOlNWNajghMzdplTw2R-NTVkLWa5RpAGZgo

To claim this, I am signing this object: