Skip to content

Instantly share code, notes, and snippets.

View ysawa's full-sized avatar

Ysawa ysawa

View GitHub Profile
@ysawa
ysawa / search.sh
Created April 19, 2014 05:18
Search words and phrases with Google Chrome.
#!/bin/bash
query=$(printf " %s" "$@")
query=${query:1}
/usr/bin/open -a "/Applications/Google Chrome.app" "https://google.com/search?q=$query"
from bs4 import BeautifulSoup
html = """
<html>
<head></head>
<body>
<div id="todo">
<h1>Todo list</h1>
<ul class="items">
<li>hello world</li>
@ysawa
ysawa / simple-webrtc-demo.html
Created November 4, 2017 03:47
Simple WebRTC Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
video {
width: 320px;
height: 240px;
}