Skip to content

Instantly share code, notes, and snippets.

@briehanlombaard
briehanlombaard / string.swift
Last active March 31, 2017 13:41
a swiftier string?
//: Playground - noun: a place where people can play
import UIKit
extension String {
func index(_ offset: Int) -> String.Index {
return index(startIndex, offsetBy: offset)
}
subscript(offset: Int) -> Character {
import argparse
import math
import random
import struct
import sys
import wave
import matplotlib.pyplot as plt
SAMPLE_RATE = 44100
<!DOCTYPE html>
<html>
<body>
<div id="player"></div>
<script>
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
background: linear-gradient(to left, #0154ae, #106cc0);
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="main.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.0/babel.min.js"></script>
<script type="text/babel" src="https://raw.githubusercontent.com/explosion/displacy-ent/master/assets/js/displacy-ent.js"></script>
</head>
<body>
<div id="displacy"></div>
background: linear-gradient(to left, #ffee52 , #ffcc33);
git bisect start
git bisect bad 1.1.1
git bisect good 1.1.0
git run ./scrapy_git_bisect.sh
import scrapy
from io import BytesIO
from PIL import Image, ImageOps
from scrapy.pipelines.images import ImagesPipeline
class ArticleItem(scrapy.Item):
image_urls = scrapy.Field()
images = scrapy.Field()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dragula/3.6.6/dragula.min.css" media="screen">
<style type="text/css" media="screen">
* {
box-sizing: border-box;
}
html, body {
height: 100%;
width: 100%;
}
body {