Skip to content

Instantly share code, notes, and snippets.

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

Guus H gshzn

🏠
Working from home
View GitHub Profile
@gshzn
gshzn / Icon.vue
Last active May 5, 2020 12:49
Vue component for loading svg's
<template>
<span v-html="svg" class="cursor-pointer" @click="$emit('click')"></span>
</template>
<script>
export default {
name: "Icon",
props: ['id', 'fill', 'height', 'width', 'className'],
computed: {
svg() {
import React, { Component } from "react";
import PropTypes from "prop-types";
import classnames from "classnames";
import Blaze from "meteor/gadicc:blaze-react-component";
import { Template } from "meteor/templating";
import { registerComponent } from "@reactioncommerce/reaction-components";
class CoreLayoutBeesknees extends Component {
static propTypes = {
actionViewIsOpen: PropTypes.bool,
[18:34:59 ERROR]: Error occurred while enabling VerenityQueue v1.0-ALPHA (Is it up to date?)
java.lang.IllegalArgumentException: Unable to create EvictionPolicy instance of type org.apache.commons.pool2.impl.DefaultEvictionPolicy
at org.apache.commons.pool2.impl.BaseGenericObjectPool.setEvictionPolicyClassName(BaseGenericObjectPool.java:622) ~[VerenityQueue-1.0-ALPHA.jar:?]
at org.apache.commons.pool2.impl.GenericObjectPool.setConfig(GenericObjectPool.java:318) ~[VerenityQueue-1.0-ALPHA.jar:?]
at org.apache.commons.pool2.impl.GenericObjectPool.<init>(GenericObjectPool.java:115) ~[VerenityQueue-1.0-ALPHA.jar:?]
at redis.clients.util.Pool.initPool(Pool.java:44) ~[VerenityQueue-1.0-ALPHA.jar:?]
at redis.clients.util.Pool.<init>(Pool.java:23) ~[VerenityQueue-1.0-ALPHA.jar:?]
at redis.clients.jedis.JedisPool.<init>(JedisPool.java:80) ~[VerenityQueue-1.0-ALPHA.jar:?]
at redis.clients.jedis.JedisPool.<init>(JedisPool.java:74) ~[VerenityQueue-1.0-ALPHA.jar:?]
int d = Math.random() * 100;
int chance = {YOUR CHANCE OF THE ITEM HERE}
if (d <= chance) {
//CONTINUE, TRUE
} else {
// DON'T CONTINUE, FALSE
}
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Give me a few numbers: (Split them by a , (comma))");
int[] numbers = parse(Console.ReadLine().Split(','));
ru.tehkode.permissions.exceptions.PermissionBackendException: com.mysql.jdbc.exc
eptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'prefix' in 'field list'
at ru.tehkode.permissions.backends.sql.SQLBackend$3.performUpdate(SQLBac
kend.java:187)
at ru.tehkode.permissions.backends.PermissionBackend.performSchemaUpdate
(PermissionBackend.java:90)
at ru.tehkode.permissions.backends.sql.SQLBackend.<init>(SQLBackend.java
:193)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)