Skip to content

Instantly share code, notes, and snippets.

View dugajean's full-sized avatar

Dugi dugajean

View GitHub Profile
function setup() {
createCanvas(700, 770);
background(0);
}
function draw() {
fill(255, 0, 0);
rect(100, 0, 600, 600);
fill(255, 255, 255);

Keybase proof

I hereby claim:

  • I am dugajean on github.
  • I am dugajean (https://keybase.io/dugajean) on keybase.
  • I have a public key ASBdXqy20hYcZbR-YT4nxr4tlX9UBPA5dOf-yXTysPTahwo

To claim this, I am signing this object:

import React, { Component } from 'react'; // Bad import, "Component" is a named import within the react library. No more than 1 default export per file
import PropTypes from 'prop-types';
import queryAPI from 'queryAPI';
class ShowResultsFromAPI extends Component { // Removed "()" after the Component class extension
constructor(props) { // props argument missing here
super(props);
// Removed "this.container" in this position as it didn't serve any purpose
@dugajean
dugajean / HttpStreamWrapperTestCase.php
Created August 15, 2019 12:19 — forked from ukolka/HttpStreamWrapperTestCase.php
PHPUnit extension for testing code that's using PHP's http:// stream wrapper context to make requests.
<?php
namespace tests\unittests\custom;
/**
* Whenever PHP HTTP stream is used you can
* inject a mock stream resource into an object that
* expect it.
*
* Usage example:
*
* ...
@dugajean
dugajean / introrx.md
Created August 8, 2019 09:41 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
[Nest] 10664 - 08/04/2019, 02:34 [ExceptionHandler] No metadata for "Task" was found. +3ms
EntityMetadataNotFound: No metadata for "Task" was found.
at new EntityMetadataNotFoundError (C:\Users\John\Code\node\task-management\node_modules\typeorm\error\EntityMetadataNotFoundError.js:10:28)
at Connection.getMetadata (C:\Users\John\Code\node\task-management\node_modules\typeorm\connection\Connection.js:340:19)
at EntityManager.getCustomRepository (C:\Users\John\Code\node\task-management\node_modules\typeorm\entity-manager\EntityManager.js:597:84)
@dugajean
dugajean / tags.json
Created June 13, 2019 08:46
Tags JSON
[{"id":"html","text":"html"},{"id":"php","text":"php"},{"id":"css","text":"css"},{"id":"python","text":"python"},{"id":"symfony","text":"symfony"},{"id":"ruby","text":"ruby"},{"id":"test","text":"test"}]
@dugajean
dugajean / install_oci8_ubuntu_16.04_php7.1.md
Created November 7, 2017 15:40 — forked from hewerthomn/install_oci8_ubuntu_16.04_php7.1.md
How to install OCI8 on Ubuntu 16.04 and PHP 7.1
@dugajean
dugajean / ApiRespond.php
Created November 15, 2016 14:26
Trait for easy creation of API responses
<?php
namespace App\Traits;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
trait ApiRespond
{
/**
// Credits go to Jeffrey Way.
(function() {
var laravel = {
initialize: function() {
this.methodLinks = $('a[data-method]');
this.registerEvents();
},