Skip to content

Instantly share code, notes, and snippets.

View m1cl's full-sized avatar
💀

m1cl

💀
  • Berlin
View GitHub Profile
-- The unit UNIT has entered the 'failed' state with result 'core-dump'.
Dez 06 17:03:35 x1 systemd[662]: Failed to start Virtual filesystem service - disk device monitor.
-- Subject: A start job for unit UNIT has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit UNIT has finished with a failure.
--
-- The job identifier is 823 and the job result is failed.
Dez 06 17:03:35 x1 dbus-daemon[1170]: [session uid=1000 pid=1170] Activating service name='ca.desrt.dconf' re>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
@m1cl
m1cl / Questionnaire.js
Last active August 13, 2018 12:28
Questionnaire.js
import React from 'react'
import PropTypes from 'prop-types'
import withStyles from 'isomorphic-style-loader/lib/withStyles'
import { withRouter, Redirect } from 'react-router'
import {
ToggleButtonGroup,
FormControl,
ToggleButton,
FormGroup,
Label,
// typescript compiled version
// [...]
render() {
const { from } = this.props.location.state || {
from: { pathname: '/app' },
};
if (this.props.isAuthenticated) {
return to;
{
from;
@m1cl
m1cl / webpack.config.js
Created July 24, 2018 12:01
webpack configuration
plugins: [
// Define free variables
// https://webpack.js.org/plugins/define-plugin/
new webpack.DefinePlugin({
'process.env.NODE_ENV': isDebug ? '"development"' : '"production"',
'process.env.API': `"${process.env.API}"`,
'process.env.GRAPHQL': `"${process.env.GRAPHQL}"`,
'process.env.RECRUITER': `"${process.env.RECRUITER}"`,
'process.env.BROWSER': true,
__DEV__: isDebug,
const status = c => {
console.log("this is the candidate" ,c); // It shows me a promise pending ...
if (parseInt(c.status) === 1 ||
parseInt(c.status) === 3 ||
parseInt(c.status) === 4 ||
parseInt(c.status) === 5) {
return true
}
return false
}
import React from 'react'
import PropTypes from 'prop-types'
import Login from '../../pages/login/Login'
import s from './LoginComponent.scss'; // eslint-disable-line
export class LoginComponent extends React.Component {
return (
handleMessageChange = (e) => {
let textArea = React.createRef()
let placeholderMessage
const {placeholder, startPos, endPos, message} = this.state
if(placeholder){
placeholderMessage = `${e.target.value.substring(0, startPos)} ${placeholder} `
}
else {
### Keybase proof
I hereby claim:
* I am m1cl on github.
* I am m1cl (https://keybase.io/m1cl) on keybase.
* I have a public key ASAZx4lebHF0gDZLZQ-8n0tECJmRcOUXaGUlVdYOW9F8RAo
To claim this, I am signing this object:
@m1cl
m1cl / Register.js
Last active October 24, 2017 12:38
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react'