Skip to content

Instantly share code, notes, and snippets.

View steve-ryan's full-sized avatar
🏠
Working from home and can keep in touch for front-end projects.

Stephen wachira steve-ryan

🏠
Working from home and can keep in touch for front-end projects.
View GitHub Profile
@steve-ryan
steve-ryan / .css
Created May 26, 2021 04:37
Sticky fixed column elementor
.sticky-column{
position: sticky;
position: -webkit-sticky;
top: 3rem;
}
.sticky-parent
.elementor-widget-wrap {
display: block!important;
}
@steve-ryan
steve-ryan / src_App.jsx
Created May 13, 2019 13:10 — forked from antosan/src_App.jsx
react-webpack-demo
import React from "react";
import logo from "./logo.svg";
import "./App.css";
class App extends React.Component {
render() {
return (
<div className="app">
<header className="app-header">
<img src={logo} className="app-logo" alt="logo" />
<!DOCTYPE html>
<html lang="en">
<head>
<title>React</title>
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
</head>
@steve-ryan
steve-ryan / youtube-dl.md
Created February 9, 2019 00:25
Using youtube-dl to download courses from Pluralsight

Download courses from learning sites with youtube-dl

You can download whole courses from an array of tutorial sites with the CLI tool youtube-dl. In the example further down I'm using my Pluralsight account to get videos from a course at their site. Here is a list of all supported sites that you can download from with this tool

The flags you have to supply may vary depending on which site you make a request to.

You can get a free 3 month trial to Pluralsight by signing up for free to Visual Studio Dev Essentials

Installation

@steve-ryan
steve-ryan / youtube-dl-download-pluralsight-videos.md
Created February 9, 2019 00:23 — forked from ivanskodje/youtube-dl-download-pluralsight-videos.md
youtube-dl for downloading pluralsight videos

Downloading Videos from Pluralsight

Disclaimer

Pluralsight do not permit users to download their videos.
If you are an user of pluralsight you have agreed with their ToS,
and are thusly refrained from doing so.
Use this knowledge at your own risk.

youtube-dl for Windows

add_filter('gettext', 'change_howdy', 10, 3);
function change_howdy($translated, $text, $domain) {
if (!is_admin() || 'default' != $domain)
return $translated;
if (false !== strpos($translated, 'Howdy'))
return str_replace('Howdy', 'Welcome', $translated);
@steve-ryan
steve-ryan / markup.php
Created December 6, 2018 02:39 — forked from Eyad-Bereh/markup.php
Creating custom markup using PHP
<?php
function string_to_html(string $str) {
$str = str_ireplace("[newline]", "<br/>", $str);
$str = str_ireplace("[bold]", "<b>", $str);
$str = str_ireplace("[/bold]", "</b>", $str);
$str = str_ireplace("[italic]", "<i>", $str);
$str = str_ireplace("[/italic]", "</i>", $str);
$str = str_ireplace("[center]", "<span style=\"text-align:center;\">", $str);
$str = str_ireplace("[/center]", "</span>", $str);
$str = str_ireplace("[left]", "<span style=\"text-align:left;\">", $str);
@steve-ryan
steve-ryan / LICENCE SUBLIME TEXT
Created June 15, 2018 12:57
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----