Skip to content

Instantly share code, notes, and snippets.

@caciobanita
caciobanita / JavascriptBooks.md
Created January 13, 2024 18:45 — forked from WebRTCGame/JavascriptBooks.md
Free Javascript Books

Useful Links

23 Free JavaScript Books

A curated collection of awesome & free JavaScript books to help you learn the JavaScript programming language.

If you know of any other free JavaScript books that you think should be on this list, please let me know in the comments section and I will get them added.

@caciobanita
caciobanita / sroll_on_drag.js
Created October 28, 2022 17:39 — forked from gaearon/sroll_on_drag.js
Scroll on drag with react-dnd
configureDragDrop(registerType) {
var imageThreshold = Math.max(120, window.innerHeight / 4),
sectionThreshold = Math.max(140, window.innerHeight / 4),
currentDY = 0,
frame;
function makeScrollingHandler(threshold) {
function getScrollDY(clientY) {
var speed;
if (clientY < threshold) {
@caciobanita
caciobanita / DragScrollProvider.tsx
Created October 28, 2022 17:38 — forked from flushentitypacket/DragScrollProvider.tsx
Typescript React component to provide click-and-drag scrolling
import * as React from 'react'
type DragScrollProvisions = {
onMouseDown: React.MouseEventHandler<HTMLElement>,
ref: React.Ref<HTMLElement>,
}
export type Props = {
children: (provisions: DragScrollProvisions) => React.ReactNode,
}
@caciobanita
caciobanita / .gitlab-ci.yml
Created March 31, 2022 13:12 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@caciobanita
caciobanita / SignedApkGenrator.sh
Created February 16, 2021 10:01 — forked from prajapatiravi257/SignedApkGenrator.sh
Small bash script for generating keystore file and generate signed apk for ionic apps
#!/bin/bash
echo "-----------Release apk builder for Ionic-------------"
echo "---------------By rio257-------------------"
read -p "Do you want to generate keystore file? <Y/N> " prompt
read -p "Enter the name of app? " appname
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then