Skip to content

Instantly share code, notes, and snippets.

View filipveschool's full-sized avatar
🎯
Focusing

Filip filipveschool

🎯
Focusing
View GitHub Profile
java 9 java 10
Map<Integer, String> map =` `new` `HashMap<>(); var idToNameMap =` `new` `HashMap<Integer, String>();
@filipveschool
filipveschool / getresponsehttpstatuscodes.java
Created March 16, 2018 10:02
get responseentity httpstatus codes
/**
* Get method: return responseentity => status OK
*
* Get method: return responseentity with no values => status NO_CONTENT
*
* Get method single retrieving nothing found : status NOT_FOUND
*
* Get method single retrieving : status OK
*
* post method : new object already exists => status CONFLICT
@filipveschool
filipveschool / IndexedDB101.js
Created March 31, 2017 00:45 — forked from JamesMessinger/IndexedDB101.js
Very Simple IndexedDB Example
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
// Open (or create) the database
var open = indexedDB.open("MyDatabase", 1);
// Create the schema
open.onupgradeneeded = function() {
var db = open.result;
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"});
@filipveschool
filipveschool / xampp_php7_xdebug.md
Created August 7, 2016 09:13 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP
[{"name":"products","color":"Red","position":{"x":100,"y":100},"increment":true,"timestamp":true,"softdelete":false,"column":[{"name":"sku","type":"string","length":"255","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":true,"guarded":false,"visible":false,"hidden":false,"colid":"c33","order":0}],"relation":[],"seeding":[]}]
@filipveschool
filipveschool / apple-mq.css
Created February 28, 2016 14:17 — forked from AllThingsSmitty/apple-mq.css
iPhone 6/6 Plus and Apple Watch CSS media queries
/* iPhone 6 landscape */
@media only screen and (min-device-width: 375px)
and (max-device-width: 667px)
and (orientation: landscape)
and (-webkit-min-device-pixel-ratio: 2)
{ }
/* iPhone 6 portrait */
@media only screen
and (min-device-width: 375px)
@filipveschool
filipveschool / IntelliJ_IDEA__Perf_Tuning.txt
Created February 17, 2016 15:50 — forked from P7h/IntelliJ_IDEA__Perf_Tuning.txt
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1