Skip to content

Instantly share code, notes, and snippets.

View toabr's full-sized avatar
🦍
༼つಠ益ಠ༽つ ─=≡⌨)

toabr

🦍
༼つಠ益ಠ༽つ ─=≡⌨)
View GitHub Profile
@toabr
toabr / init.lua
Last active February 26, 2023 19:53
Basic Nvim Lsp Config
----------------------------------------------------------------
-- Basic Nvim Lsp Config
----------------------------------------------------------------
--[[
Requirements:
• git
• g++
• node
[Scheme]
Name=Everforest
ColorCursor=#7fbbb3
ColorForeground=#d8cacc
ColorBackground=#323d43
TabActivityColor=#88C0D0
ColorPalette=rgb(74,85,91);rgb(230,129,131);rgb(167,192,128);rgb(219,188,127);rgb(127,187,179);rgb(214,153,182);rgb(131,192,146);rgb(216,202,172);rgb(82,92,98);rgb(230,129,131);rgb(167,192,128);rgb(219,188,127);rgb(127,187,179);rgb(214,153,182);rgb(131,192,146);rgb(216,202,172)
ColorBold=#415c6d
ColorBoldUseDefault=FALSE
@justsml
justsml / fetch-api-examples.md
Last active February 24, 2024 18:05
JavaScript Fetch API Examples
@barbietunnie
barbietunnie / udemy-courses-download-using-cookies.md
Last active May 10, 2024 18:17
Downloading Udemy videos with youtube-dl

How to download your Udemy course videos using youtube-dl

$ youtube-dl --list-extractors | grep udemy

Steps

  1. Get link to the course to download. e.g. https://www.udemy.com/course-name/
  2. Login into udemy website, save the cookie from chrome using Chrome (Cookie.txt)[1] export extension. Save it to file udemy-cookies.txt
  3. Get the link of the video that you want to download. usually in format. Use the command provided below where you have to replace the {course_link} and {path_to_cookies_file} with respective paths.
$ youtube-dl {course_link} --cookies {path_to_cookies_file}
@learncodeacademy
learncodeacademy / webpack.config.js
Created January 8, 2016 03:55
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
@toshimaru
toshimaru / jquery-scroll-bottom.js
Last active May 31, 2022 10:55
Detect the scrolling to bottom of the page using jQuery.
$(window).on("scroll", function() {
var scrollHeight = $(document).height();
var scrollPosition = $(window).height() + $(window).scrollTop();
if ((scrollHeight - scrollPosition) / scrollHeight === 0) {
// when scroll to bottom of the page
}
});