Skip to content

Instantly share code, notes, and snippets.

@sen0rxol0
sen0rxol0 / button.jsx
Last active June 20, 2017 15:53
Better conditional className in react with classnames and template literals
import React from 'react';
import classNames from 'classnames';
export default function Button() {
let btnClasses = classNames({
'btn--large': true,
'btn--disabled': false
});
return (
@sen0rxol0
sen0rxol0 / easing.js
Created September 27, 2017 21:52 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity

Keybase proof

I hereby claim:

  • I am sen0rxol0 on github.
  • I am sen0rxol0 (https://keybase.io/sen0rxol0) on keybase.
  • I have a public key ASCwDsrR6HALTGzP6SPal_XpH--jRspUL9g3D8053QVSQAo

To claim this, I am signing this object:

@sen0rxol0
sen0rxol0 / firefoxde.md
Last active November 11, 2017 15:02
Setup Firefox Developer Edition

Installing firefox developer edition on debian/ubuntu

Download your installation files

When your download as finished

extract your files

$ mkdir /opt/firefoxde
$ tar -xjvf ~/Downloads/firefox-[version].[lang].[platform].tar.bz2 
@sen0rxol0
sen0rxol0 / mysqlcheatsheet.md
Created November 10, 2017 22:01
A list of MySQL and SQL commands
@sen0rxol0
sen0rxol0 / phpdebian.md
Last active November 12, 2018 20:45
install php latest version by purging old version
sudo apt-get purge 'php7*'

sudo apt-get install apt-transport-https lsb-release ca-certificates

sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
sudo apt update

sudo apt-get install php7.1
@sen0rxol0
sen0rxol0 / postman.md
Last active September 15, 2018 11:13
Postman - installation Linux/Debian

Since Chrome apps are now being depracated. Download postman from https://dl.pstmn.io/download/latest/linux

Installing Postman

tar -xzf Postman-linux-x64-5.3.2.tar.gz

If any version is installed before, remove it.

sudo rm -rf /opt/Postman
@sen0rxol0
sen0rxol0 / docker-compose.yml
Last active October 16, 2018 16:31
React.js server dockerfile basic
version: '3.5'
services:
app:
build: .
volumes:
- '.:/app'
ports:
- '3000:80'
environment:
@sen0rxol0
sen0rxol0 / docker-compose.yml
Last active April 12, 2023 18:50
Nuxt.js with SSR featuring “Docker Multi-stage build” and “node-prune"
version: '3.5'
services:
app:
build: .
volumes:
- '.:/app'
ports:
- '3000:80'
environment:
@sen0rxol0
sen0rxol0 / Makefile
Created October 18, 2018 21:36 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.