Skip to content

Instantly share code, notes, and snippets.

@sk8darr
sk8darr / Random-string
Created January 11, 2022 16:45 — forked from 6174/Random-string
Generate a random string in JavaScript In a short and fast way!
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
@sk8darr
sk8darr / diashabiles.php
Created October 5, 2021 14:31 — forked from angelmartz/diashabiles.php
Obtener días hábiles en PHP
<?php
/**
* Metodo getDiasHabiles
*
* Permite devolver un arreglo con los dias habiles
* entre el rango de fechas dado excluyendo los
* dias feriados dados (Si existen)
*
* @param string $fechainicio Fecha de inicio en formato Y-m-d
* @param string $fechafin Fecha de fin en formato Y-m-d
import android.view.View
import androidx.appcompat.widget.AppCompatImageView
import androidx.viewpager2.widget.ViewPager2
class PageTransformer : ViewPager2.PageTransformer {
override fun transformPage(view: View, position: Float) {
when {
position <= 1 -> {
//Replace R.id.image for your view id
#!/bin/bash
# If it redirects to http://www.facebook.com/login.php at the end, wait a few minutes and try again
EMAIL='YOUR_EMAIL' # edit this
PASS='YOUR_PASSWORD' # edit this
COOKIES='cookies.txt'
USER_AGENT='Firefox/3.5'