Blog Spot!


Positioning Elements on the Web

Added on 03.Aug.2019
Tags: positioning css floats flexbox

Top 10 JavaScript Patterns

Top 10 JavaScript (ES5) Patterns Every Developer Like

  • Modules
  • Singleton
  • Mixins with Classical Inheritance
  • ...and many more..

Article dev.to.

Code with fixed mistakes, ex. "Mixin Pattern" - pastebin

Added on 02.Aug.2019
Tags: js javascript patterns es5 modules

The Definitive TypeScript Handbook

TypeScript is the one of the tools people want to learn most, according to a Stack Overflow Survey of 90,000 developers.

TypeScript has exploded in popularity, community size, and adoption over the past few years. Today, even Facebook's Jest project from Facebook is moving to TypeScript.

freecodecamp

Added on 02.Aug.2019
Tags: js ts typescript handbook

Vue.JS Quick Start

codepen

  • simple usage of Vue instance & Vue components
Vue.component('list-cats', {
    props: ['cats'],
    template: `
        <ul>
            <li v-for="cat in cats">{{ cat.name }}</li>
        <ul>
    `
});

new Vue({
    el: "#root",
    component: [
        'list-cats'
    ],
    data: {
        title: 'some text here',
        items: [
            'table', 'sink', 'pen'
        ],
        cats: [
            { name: 'Masha' },
            { name: 'Misho' },
            { name: 'Lucky' },
            { name: 'Mussi' },
            { name: 'Kerrigan' }
        ]
    }
})
<div class="container">
    <br>
    <div id="root">
        <h3>Input text:[{{ title }}]</h3>
        <input v-model="title" />
        <hr>
        <ul>
            <li v-for="item in items">{{ item }}</li>
        </ul>
        <h1>List Cats</h1>
        <list-cats :cats="cats"/>
    </div>
</div>

<!-- v-model -->
<!-- v-if & v-else-if -->
<!-- v-show -->
<!-- v-bind or only ":" ex. v-bind:disabled="RULE" -->
<!-- v-text or v-html -->
<!-- v-once -->
<!-- LOOPING: v-for="item in items" -->
<!-- v-on or ony "@" ex. v-on:click.prevent -->

Added on 17.May.2019
Tags: vue js beginner framework codepen

Convert an integer to binary in JavaScript?

function dec2bin(dec){
    return (dec >>> 0).toString(2);
}

dec2bin(1);    // 1
dec2bin(-1);   // 11111111111111111111111111111111
dec2bin(256);  // 100000000
dec2bin(-256); // 11111111111111111111111100000000

stackoverflow

Added on 16.Apr.2019
Tags: js bin dec convert

Search


PHP Libraries


Carbon lib / docs
Idiorm lib / docs
Image Workshop lib / docs
lorenzos/Minixed lib / docs
Parsedown lib / docs
PHP Paginator lib / docs
PHP Redis lib / docs
QrCode lib / docs
Requests lib / docs
Slim lib / docs
Spyc lib / docs
TWIG lib / docs
Upload lib / docs
Validation lib / docs
Zebra Image lib / docs

JS Libraries


AJV lib / docs
BackboneJS lib / docs
Bootstrap Notify lib / docs
C3.js lib / docs
ChartJS lib / docs
FastMD5 lib / docs
HighlightJS lib / docs
jQuery-Storage lib / docs
JS-Cookie lib / docs
Leaflet JS lib / docs
LowDB lib / docs
Marked lib / docs
NeedlyJS lib / docs
ParcelJS lib / docs
RequireJS lib / docs
Swig lib / docs
Toastr lib / docs
Underscore lib / docs
ValidateJS lib / docs
top