Snippets

More Code, Less Words

Python - First n items from dictionary / List

Python - First n items from dictionary / List

python

Extract first n items from any iterable

Read

FontAwesome - Changing SVG icons programmatically

FontAwesome - Changing SVG icons programmatically

font-awesome javascript

Change FontAwesome SVG icons with JavaScript

Read

Custom Bootstrap Button with Sass/Scss

Custom Bootstrap Button with Sass/Scss

bootstrap

Create customized color button with bootstrap

Read

Three.js - Importing OrbitControls with Webpack

Three.js - Importing OrbitControls with Webpack

three.js javascript

Import OrbitControls with Webpack or es6 style.

Read

Javascript - Insert at any index in an array

Javascript - Insert at any index in an array

javascript

splice api can be used to insert in an array at any index

Read

GSAP-3 Ease with Webpack

GSAP-3 Ease with Webpack

gsap javascript

Ease can't be used straightforward. By altering the way of importing Gsap, Ease can be used.

Read

Java - Iterator to Stream

Java - Iterator to Stream

stream java

Convert Iterator to Stream in Java 8+

Read

Gradle - Reusing buildscript Repositories

Gradle - Reusing buildscript Repositories

gradle

getByName() can be used to reuse gradle repositories from buildscript

Read

Collecting Unmapped Fields with Jackson

Collecting Unmapped Fields with Jackson

json object mapper java

@JsonAnySetter is used to collect unmapped fields

Read