Skip to content

Instantly share code, notes, and snippets.

View fallsimply's full-sized avatar

fall simply fallsimply

View GitHub Profile
document.getElementsById("one").style.display = "block";
document.getElementsById("two").style.display = "none"
function slide(id) {
var slide1, slide2;
slide1 = document.getElementsById("one");
slide2 = document.getElementsById("two");
if (id = 1) {
slide2.style.display = "none";
slide1.style.display = "block";
} else {
msg * "Your attempt was Succesful"
@fallsimply
fallsimply / YouTubeThumbnail.jpg
Created April 14, 2017 16:42
YouTube Thumbnail URL Formula
https://i.ytimg.com/vi/{videoid}/hqdefault.jpg
@fallsimply
fallsimply / index.pug
Created April 25, 2017 20:22
YouTube Thumbnail Grabber
input(type="text", id="vidID")
button(onclick="submit()") Click Me
br
<a style="background-color:black;color:white;text-decoration:none;padding:4px 6px;font-family:-apple-system, BlinkMacSystemFont, &quot;San Francisco&quot;, &quot;Helvetica Neue&quot;, Helvetica, Ubuntu, Roboto, Noto, &quot;Segoe UI&quot;, Arial, sans-serif;font-size:12px;font-weight:bold;line-height:1.2;display:inline-block;border-radius:3px;" href="https://unsplash.com/@dinoto_photography?utm_medium=referral&amp;utm_campaign=photographer-credit&amp;utm_content=creditBadge" target="_blank" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from Cris DiNoto"><span style="display:inline-block;padding:2px 3px;"><svg xmlns="http://www.w3.org/2000/svg" style="height:12px;width:auto;position:relative;vertical-align:middle;top:-1px;fill:white;" viewBox="0 0 32 32"><title></title><path d="M20.8 18.1c0 2.7-2.2 4.8-4.8 4.8s-4.8-2.1-4.8-4.8c0-2.7 2.2-4.8 4.8-4.8 2.7.1 4.8 2.2 4.8 4.8zm11.2-7.4v14.9c0 2.3-1.9 4.3-4.3 4.3h-23.4c-2.4 0-4.3-1.9-4.3-4.3v-15c0-2.3 1.9-4.3 4.3-4.3h3.7l.8
let i = 1
let arr = [3, 5]
while( i <= 30) {
if( i % arr[0] * arr[1] == 0 ){
console.log('fizz buzz ')
}
else if ( i % arr[0] == 0) {
console.log('fizz ')
}
else if ( i % arr[1] == 0) {
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var sass = require('gulp-sass');
// Static Server + watching scss/html files
gulp.task('serve', ['sass'], function() {
browserSync.init({
server: "./app"
});
gulp.watch("*.sass", ['sass']);
@fallsimply
fallsimply / Stylefile.yml
Created July 31, 2018 17:55
Customizations for fallproject.org via StyleURL.
---
version: 1.0
domains:
- fallproject.org
url_patterns:
- fallproject.org/*
timestamp: '2018-07-31T17:55:25Z'
id: e8-L
redirect_url: https://fallproject.org/
shared_via: StyleURL - (https://styleurl.app) import and export CSS changes from Chrome
@fallsimply
fallsimply / DailyMix.Fetch.js
Last active November 17, 2018 03:09
dmd Spot Utils - All files prefixed with spotify is pulled from open.spotify.com.
var MinMaxInt(min, max) {
return Math.floor(Math.random() * (max - min) + min);
}
var fetch = (num) => [`https://daily-mix.scdn.co/covers/text/${num}_EN.png`,`https://daily-mix.scdn.co/covers/waves/wave_${num}.png`]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.