Skip to content

Instantly share code, notes, and snippets.

@jamesdeantv
jamesdeantv / gist:c30e8c7be52a817fc24234af158d7cae
Created November 4, 2018 20:56 — forked from paulkaplan/gist:5770247
Orbit Controls with momentum and damping for THREE.js
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
*
* customized for momentum (zoom and phi/delta) by paulkaplan
*/
THREE.OrbitControls = function ( object, domElement ) {
@jamesdeantv
jamesdeantv / live-radio.json
Created November 15, 2018 00:34 — forked from valarpirai/live-radio.json
Tamil Live Streaming Radio URL list
[{"name":"Chennai","channels":[{"id":"ar-rahman-lite-radio","name":"A R Rahman Lite Radio","website":"http://southradios.com","src":"http://212.83.138.48:8332/;"},{"id":"a-r-rahman-radio","name":"A R Rahman Radio","website":"http://southradios.com","src":"http://212.83.138.48:8328/;"},{"id":"ap-myindmedia","name":"AP MyIndMedia","website":"http://www.myindmedia.com/","src":"http://52.3.202.102:8030/;"},{"id":"bible-radio-new-testament","name":"Bible Radio - New Testament","website":"http://southradios.com","src":"http://212.83.138.48:8429/;"},{"id":"bible-reading-the-gospel","name":"Bible Reading - The Gospel","website":"http://southradios.com","src":"http://212.83.138.48:8436/;"},{"id":"btc-tamil-fm","name":"BTC Tamil FM","website":"http://www.btctamil.com","src":"http://199.175.48.216:8080/;"},{"id":"chennaichristianradio","name":"Chennai Christian Radio","website":"http://chennaichristianradio.com/","src":"http://5.10.69.105/stream2?.mp3"},{"id":"christian-fm","name":"Christian FM","website":"http://christ
##.ytp-pause-overlay
##.ytp-ce-covering-overlay
##.ytp-ce-element-shadow
##.ytp-ce-covering-image
##.ytp-ce-expanding-image
@jamesdeantv
jamesdeantv / dabblet.css
Created February 17, 2019 03:05 — forked from LeaVerou/dabblet.css
Sprite Sheet animation with CSS3 using the steps() feature
/**
* Sprite Sheet animation with CSS3 using the steps() feature
* Simplified from simurai’s original example at http://jsfiddle.net/simurai/CGmCe/
*/
@keyframes wink {
from { background-position: 0px; }
to { background-position: -500px; }
}
@jamesdeantv
jamesdeantv / app.js
Created March 24, 2019 19:36 — forked from jochasinga/app.js
Node/Socket.io server code for syncing data from Firebase
var Firebase = require("firebase");
var express = require("express");
// Create HTTP Server
var app = express();
var server = require("http").createServer(app);
// Attach Socket.io server
var io = require("socket.io")(server);
// Indicate port 3000 as host
var port = process.env.PORT || 3000;

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}
= Some yum usage for people who know "apt" =
If you are familiar with the apt package manager on Debian/Ubuntu this page should help you transfer your knowledge to working with yum on Fedora/RHEL/CentOS/etc.
Note that this page as currently written is by non-apt experts, so there may be some mistakes.
== General points ==
* Speed:
* data/CPU: apt on Debian deals with roughly ~37,000 packages[1] and an extra 6,500 "provides"[2]. yum on Fedora deals with roughly 24,000 packages, 143,000 provides and 3,100,000 file provides.
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>
Demo
</ion-title>
</ion-toolbar>
</ion-header>
@jamesdeantv
jamesdeantv / fancy-transition.ts
Created August 28, 2019 21:54 — forked from BekirUzun/fancy-transition.ts
Ionic 3 custom page transitions: "slide-up" and "fancy"
import { Animation, PageTransition } from "ionic-angular";
import { isPresent } from "ionic-angular/util/util";
const EASINGS = {
outBack: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)',
inOutCubic: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
magnet: 'cubic-bezier(0.85, 0.06, 0.15, 0.94)'
}
const DURATION = 500;
@jamesdeantv
jamesdeantv / swipeableTabs.tsx
Created August 29, 2019 00:05 — forked from JCKodel/swipeableTabs.tsx
Hacky swipeable Ionic/Stencil tabs
import { Component } from "@stencil/core";
@Component({ tag: "page-tabs", styleUrl: "page-tabs.scss" })
export class PageTabs
{
private tabNames: Array<string>;
private slides: HTMLIonSlidesElement;
private tabs:HTMLIonTabsElement;
private getTabNames(tabs: HTMLIonTabsElement)