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 / RESTApplication.java
Created May 12, 2019 06:56 — forked from brunocribeiro/RESTApplication.java
Set of configuratons to enable CORS in AngularJS with Java Environments
package com.brunocesar.config;
import java.io.IOException;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
import javax.ws.rs.ext.Provider;
@Provider
@bonniss
bonniss / bootstrap-4-sass-mixins-cheat-sheet.scss
Created May 5, 2019 11:03 — forked from anschaef/bootstrap-4-sass-mixins-cheat-sheet.scss
Bootstrap 4 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 4 Sass Mixins [Cheat sheet]
// Updated to Bootstrap v4.1.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/v4-dev/scss/mixins
/* -------------------------------------------------------------------------- */
// Grid variables
$grid-columns: 12 !default;
$grid-gutter-width: 30px !default;
@bonniss
bonniss / .gitignore
Created April 25, 2019 22:29 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@bonniss
bonniss / postgres-cheatsheet.md
Last active October 8, 2024 14:03 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Connect to DB

psql -U postgres

# then enter password for user `postgres`

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})