Skip to content

Instantly share code, notes, and snippets.

View matheus1lva's full-sized avatar
😃
set yourself free

Matheus Gonçalves da Silva matheus1lva

😃
set yourself free
View GitHub Profile
public class grafoComparacao implements ViewerListener {
private List<Comparados> integralizacoesComparadas;
private Viewer viewer;
private Graph graph;
private View view;
protected boolean loop = true;
public grafoComparacao(List<Comparados> listaComparados) throws HeadlessException, InterruptedException {
System.setProperty("org.graphstream.ui.renderer", "org.graphstream.ui.j2dviewer.J2DGraphRenderer");
this.integralizacoesComparadas = listaComparados;
public static void main(String[] args) {
System.setProperty("org.graphstream.ui.renderer", "org.graphstream.ui.j2dviewer.J2DGraphRenderer");
Graph graph = new MultiGraph("main graph");
graph.addAttribute("ui.stylesheet", styleSheet);
SpriteManager sm = new SpriteManager(graph);
Node a = graph.addNode("A");
Node b = graph.addNode("B");
Node c = graph.addNode("C");
Edge AB = graph.addEdge("edge ab", a, b);
@matheus1lva
matheus1lva / webpackbin.js
Created February 9, 2018 14:22
require.resolve problem
#!/usr/bin/env node
const { exec } = require("child_process");
const inquirer = require("inquirer");
function runCommand(command) {
exec(command, (error, stdout, stderr) => {
if(!error) {
console.log("Webpack-cli installed successfully");
return true;
}
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const extractCSS = new ExtractTextPlugin('[name].fonts.css');
const extractSCSS = new ExtractTextPlugin('[name].styles.css');
const BUILD_DIR = path.resolve(__dirname, 'build');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const webpack = require('webpack');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const extractCSS;
const extractSCSS;
const BUILD_DIR = path.resolve(__dirname, 'build');
# hello, This is Markdown Live Preview
## what is Markdown?
see [Wikipedia](http://en.wikipedia.org/wiki/Markdown)
> Markdown is a lightweight markup language, originally created by John Gruber and Aaron Swartz allowing people "to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML)".
## usage
import React from 'react';
import PropTypes from 'prop-types';
class AsyncRoute extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
loaded: false
};
}
@matheus1lva
matheus1lva / gist:3512230f728cb7266487cfb33e1d49f6
Created April 25, 2018 23:09
english stuff that must use
MUST USE:
- IT WOULD BE SENSIBLE/ADVISABLE TO...
- THE ODDS ARE (THAT)... (PARA COISAS FORA DO NORMAL)
- WHO SHOULD I (VERB) BUT (SOMETHING ELSE)
- IF I WERE IN YOUR SHOES ...
- I HOPE YOU'LL TAKE THIS IN THE SPIRIT IN WHICH IT IS INTENDED
- SWEARS BY
import React from 'react';
import PropTypes from 'prop-types';
import Loading from './components/Loading';
class AsyncRoute extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
loaded: false
};