Skip to content

Instantly share code, notes, and snippets.

View JoshuaFrontEnd's full-sized avatar
🎯
Focusing

Joshua Torres JoshuaFrontEnd

🎯
Focusing
View GitHub Profile
@JoshuaFrontEnd
JoshuaFrontEnd / youtubeID.js
Last active December 18, 2019 13:44 — forked from takien/youtubeID.js
Obtener el ID de la url de un video en youtube
/**
* Get YouTube ID from various YouTube URL
* @author: takien
* @url: http://takien.com
* For PHP YouTube parser, go here http://takien.com/864
*/
function YouTubeGetID(url){
var ID = '';
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);
@JoshuaFrontEnd
JoshuaFrontEnd / slick-on-mobile.js
Last active October 9, 2019 14:25 — forked from ndunk28/slick-on-mobile.js
slick js only on mobile
// slider
$slick_slider = $('.slider');
settings_slider = {}
slick_on_mobile( $slick_slider, settings_slider);
// slick on mobile
function slick_on_mobile(slider, settings){
var mediaQuery = window.matchMedia('(min-width: 769px)');
mediaQuery.addListener(doSomething);
function doSomething(mediaQuery) {
@JoshuaFrontEnd
JoshuaFrontEnd / README.md
Created May 23, 2018 15:55 — forked from sgnl/README.md
Setting up SASS (SCSS) files with gulp, gulp-sass, and Browser Sync!

Create a new temp project

  1. $ mkdir sass_gulp_workshop
  2. cd into the new directory
  3. Initialize NPM: $ npm init --yes
  4. Install gulp and gulp-sass packages: $ npm install -D gulp gulp-sass browser-sync
  5. Update package.json's scripts section with this key-value pair: "scripts": { "dev": "gulp" }
  6. Recreate this file structure in this directory:
  • public (directory)
    • css (directory)
    • index.html (file)