Skip to content

Instantly share code, notes, and snippets.

Avatar
😺
Meow!

Catzilla Catzilla

😺
Meow!
View GitHub Profile
@oskar456
oskar456 / wgcf.py
Last active Aug 12, 2020
Cloudflare WARP linux client (using wg-quick for actual tunnel setup)
View wgcf.py
#!/usr/bin/env python3
import subprocess
import json
import os
from pathlib import Path
import requests
from requests.compat import urljoin
@nemanja947
nemanja947 / NprogressAxios.js
Last active Aug 4, 2019
NProgress implementation with Axios
View NprogressAxios.js
// Add a request interceptor
axios.interceptors.request.use(function (config) {
// Do something before request is sent
NProgress.start();
return config;
}, function (error) {
// Do something with request error
console.error(error)
return Promise.reject(error);
});
View Salsa20.cs
/*
* This implementation of Salsa20 is ported from the reference implementation
* by D. J. Bernstein, which can be found at:
* http://cr.yp.to/snuffle/salsa20/ref/salsa20.c
*
* This work is hereby released into the Public Domain. To view a copy of the public domain dedication,
* visit http://creativecommons.org/licenses/publicdomain/ or send a letter to
* Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
*/
@nikkanetiya
nikkanetiya / axios-nprogress.js
Created Sep 6, 2017
NProgress bar with axios
View axios-nprogress.js
import 'nprogress/nprogress.css'
import NProgress from 'nprogress'
import axios from 'axios'
const calculatePercentage = (loaded, total) => (Math.floor(loaded * 1.0) / total)
const setupUpdateProgress = () => {
axios.defaults.onDownloadProgress = e => {
const percentage = calculatePercentage(e.loaded, e.total)
@droganaida
droganaida / sticky_footer.html
Last active Nov 8, 2019
3 способа, как прижать footer к низу страницы
View sticky_footer.html
@ayamflow
ayamflow / gist:b602ab436ac9f05660d9c15190f4fd7b
Created May 9, 2016
Safari border-radius + overflow: hidden + CSS transform fix
View gist:b602ab436ac9f05660d9c15190f4fd7b
// Add on element with overflow
-webkit-mask-image: -webkit-radial-gradient(white, black);
You can’t perform that action at this time.