Skip to content

Instantly share code, notes, and snippets.

@rye761
rye761 / main.py
Created April 23, 2019 02:27
Social Blade scrape
import urllib2
import csv
import re
from bs4 import BeautifulSoup
rank_page = 'https://socialblade.com/youtube/top/50/mostviewed'
request = urllib2.Request(rank_page, headers={'User-Agent': 'your user-agent'})
page = urllib2.urlopen(request)
soup = BeautifulSoup(page, 'html.parser')
package heatwave.ryanaird.com.swipyrecyclerview
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.support.v7.widget.DividerItemDecoration
<!DOCTYPE html>
<html>
<head>
<title>Fireside Chat</title>
<link rel="stylesheet" href="/style/style.css">
</head>
<body>
<h1>Fireside Chat</h1>
<div id="app">
<div v-if="state == 0">
<html>
<head>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<title>Ron Swanson Quote</title>
</head>
<body>
<div id="app">
<p>{{ status }}</p>
</div>
<html>
<head>
<title>CSS Grid Video</title>
<meta charset="utf-8">
<style>
.container {
width: 80%;
margin: 0 auto;
font-size: 0;
text-align: center;
@rye761
rye761 / index.html
Created July 25, 2017 17:06
Simple Vue.js Slideshow
<html>
<head>
<title>Slideshow Test</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://unpkg.com/vue"></script>
</head>
<body>
<html>
<head>
<title>Vue.js Router</title>
<meta charset="utf-8">
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/[email protected]/dist/vue-router.js"></script>
</head>
<body>
<div id="app">
<nav>
@rye761
rye761 / todoapp.html
Created June 24, 2017 02:50
Todo App in Vue.js
<html>
<head>
<title>Todo App</title>
<meta charset="utf-8">
<script src="https://unpkg.com/vue"></script>
</head>
<body>
<div id="app">
<h1>Todo App</h1>
<todo-form @todo-created="addTodo"></todo-form>
<html>
<head>
<title>Todo App</title>
<meta charset="utf-8">
<script src="https://unpkg.com/vue"></script>
</head>
<body>
<div id="app">
<h1>{{ header }}</h1>
<todo-form @add-todo="addTodo"></todo-form>
@rye761
rye761 / animation.html
Created June 19, 2017 19:22
Vue.js Animation
<html>
<head>
<title>Vue.js Animations</title>
<script src="https://unpkg.com/vue"></script>
<style>
* {
font-family: sans-serif;
}
h1 {
display: inline-block;