Skip to content

Instantly share code, notes, and snippets.

View bonniss's full-sized avatar
🥐
Cancer - Croissant

Dan Teddy bonniss

🥐
Cancer - Croissant
View GitHub Profile
@bonniss
bonniss / js-regexp.md
Created January 9, 2020 01:13
A code note on Javascript Regular Expression, refer to javascript.info

Patterns and Flags

Regexp

A regular expression consists of a pattern and option flags.

There are two syntaxes that can be used to create a regexp object.

@bonniss
bonniss / jasperreports.md
Last active June 24, 2020 02:23
Guides and resources on JasperReport, JasperStudio, iReport

JasperReport note

JasperReports is an open Source Java reporting tool that can write to a variety of targets, such as: screen, a printer, into PDF, HTML, Microsoft Excel, RTF, ODT, comma-separated values (CSV) or XML files. It can be used in Java-enabled applications, including Java EE or web applications, to generate dynamic content. It reads its instructions from an XML or .jasper file.

Getting Started

Jaspersoft Studio (formerly iReport)

@bonniss
bonniss / os-soft.md
Last active December 9, 2019 11:54
List of softwares and tools on company PC.

Software List

Install chocolatey

Guidelines

Requirements

  • Windows 7 ↑
  • Powershell v2+
@bonniss
bonniss / github-search-cheatsheet.md
Last active April 23, 2024 15:22
Github search cheatsheet from official docs.

Github Search Cheat Sheet

GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.

For more information, visit our search help section.

Basic search

@bonniss
bonniss / lara-routing.md
Created October 28, 2019 11:55
A quick guide on Laravel routing

Laravel Routing

Ref: https://laravel.com/docs/5.8/routing

Overview

All Laravel routes are defined in route files, which are located in the routes directory. These files are automatically loaded by the framework.

  • The route/web.php file defines routes that are for your web interface. These routes are assigned the web middleware group, which provides features like session state and CSRF protection.

  • The routes in routes/api.php are stateless and are assigned the api middleware group.

@bonniss
bonniss / lara-responses.md
Created October 28, 2019 07:11
A quick guide on Laravel Responses, reference to official docs

Laravel Reponses

Ref: https://laravel.com/docs/5.8/responses

Creating Responses

String or array

All routes and controllers should return a response to be sent back to the user's browser. The most basic is returning a string from a route or controller, which will be converted automatically into a full HTTP response.

@bonniss
bonniss / vue-instance.md
Last active October 19, 2019 13:45
Notes on Vue instance and lifecycle hooks

Vue Essentials: Vue instance and lifecycle hooks

Vue notes from official documentation Reference: Official Docs

Vue (pronounced /vjuː/, like view) is a progressive framework for building user interfaces. Unlike other monolithic frameworks, Vue is designed from the ground up to be incrementally adoptable. The core library is focused on the view layer only, and is easy to pick up and integrate with other libraries or existing projects. On the other hand, Vue is also perfectly capable of powering sophisticated Single-Page Applications when used in combination with modern tooling and supporting libraries.

The Vue Instance

Creating a Vue Instance

@bonniss
bonniss / vue-comparisons.md
Created October 19, 2019 11:56
A brief comparisons of Vue with 2 other ubiquitous friends: React and Angular

Vue notes from official documentation

Reference: Official Docs

Comparison with Other frameworks

Vue (pronounced /vjuː/, like view) is a progressive framework for building user interfaces. Unlike other monolithic frameworks, Vue is designed from the ground up to be incrementally adoptable. The core library is focused on the view layer only, and is easy to pick up and integrate with other libraries or existing projects. On the other hand, Vue is also perfectly capable of powering sophisticated Single-Page Applications when used in combination with modern tooling and supporting libraries.

React

@bonniss
bonniss / laravel-artisan-cheatsheet
Last active February 22, 2021 11:44 — forked from hoandang/laravel-artisan-cheatsheet
Laravel artisan cheatsheet
clear-compiled Remove the compiled class file
down Put the application into maintenance mode
env Display the current framework environment
help Displays help for a command
inspire Display an inspiring quote
list Lists commands
migrate Run the database migrations
optimize Optimize the framework for better performance
serve Serve the application on the PHP development server
tinker Interact with your application
@bonniss
bonniss / vue-handbook-note.md
Created October 17, 2019 11:27
A personal note on "The Vue Handbook: a thorough introduction to Vue.js" on Freecodecamp

Vue notes

Reference: Freecodecamp Vue handbook

Why developers love Vue

First, Vue is called a progressive framework.

  • It adapts the needs of the dev. Other fw requires a complete buy-in from a dev or team and often want you to rewrite an existing application because they require some specific set of conventions. Vue happily lands inside your app with a simple script tag to start with, and it can grow along with your needs, spreading 3 lines to managing your entire view layer.