Skip to content

Instantly share code, notes, and snippets.

View Arxcis's full-sized avatar
✌️

Jonas Johan Solsvik Arxcis

✌️
  • Oslo, Norway
View GitHub Profile
ERROR in ../kk-vue-components/node_modules/babel-loader/lib?{"cacheDirectory":true,"presets":[["env",{"modules":false,"targets":{"browsers":["> 2%"],"uglify":true}}],"env"],"plugins":["transform-object-rest-spread",["transform-runtime",{"polyfill":false,"helpers":false}],["transform-runtime",{"polyfill":false}],["transform-object-rest-spread"]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./node_modules/kk-vue-components/src/svg-icon.vue
Module build failed: Error: Duplicate plugin/preset detected.
If you'd like to use two separate instances of a plugin,
they neen separate names, e.g.
plugins: [
['some-plugin', {}],
['some-plugin', {}, 'some unique name'],
]
at assertNoDuplicates (/home/jonasjso/git/kvalitetskontroll/kk-vue-components/node_modules/@babel/core/lib/config/config-descriptors.js:201:13)
@Arxcis
Arxcis / goto.sh
Last active September 16, 2018 00:59
refactor goto.sh
!/bin/bash
PROJECT=`cat ${HOME}/.goto/active-project`
GOTOPATH="${HOME}/.goto/projects/${PROJECT}.json"
GOTO="/usr/local/opt/goto/the_real_goto.py"
# Special case no 1
if [ "$1" = "cd" ]; then
# hack to cd in this shell to the ouput of goto show <magicword>
path=`goto show "$2"`
class Vector:
"""
class -- Represents a Vector with n length
"""
def __init__(self, nparray):
self.array = nparray #1d numpy array
self.length = len(self.array)
self.x = self.array[0]
self.y = self.array[1]
# 09.12.2016 - Jonas
# Trying to make an efficient collision detection
import random
import math
from . import Blob
widtH = 800
@Arxcis
Arxcis / Blob - map suggestion
Last active December 8, 2016 22:14
This is a suggestion for how to have 2d collision detection in PyGame
# This is a suggestion to how to have 2d collision detection
# Inspired by Sentdex - part 20 intermediate Python tutorial
WIDTH = 600
HEIGHT = 400
blob_or_zero = [[ 0 for i in range(WIDTH) ] for i in range(HEIGHT) ] # Making a 2d blob-map, which has the same ratio as the screens pixel-map
blobs = [ Blob( random.x, random.y ) for i in range(20) ] # Initializing 20 blobs to random position
@Arxcis
Arxcis / Golang threading test
Created December 6, 2016 00:45
Testing out 10 concurrent threads that each count at a random pace
package main
import (
"fmt"
"math/rand"
"time"
)
func main () {
goRoutineTest()
}
@Arxcis
Arxcis / gist:4396805
Last active December 10, 2015 06:48
Crash-report from when Steam launches on system startup into Big Picture Mode. Tested on Ubuntu 32/64 bit , Linux Mint. Happens almost every time.
#This is the terminal output from when Steam Launches on system startup
# during the first loop.
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
SteamUpdater: Error: Download failed: http error 0
unlinked 0 orphaned pipes
Installing breakpad exception handler for appid(steam)/version(1355957371_client)