Skip to content

Instantly share code, notes, and snippets.

@stevenyxu
stevenyxu / Product List
Last active August 29, 2015 14:09
Tatcha API
$ curl 'http://api.tatcha.com/shop/api/rest/products?page=1&limit=3&order=name&dir=asc' -H "Accept: text/xml"
<?xml version="1.0"?>
<magento_api>
<data_item>
<entity_id>314</entity_id>
<sku>GOLD-TUMBLER-GP</sku>
<name>24-Karat Gold Leaf Tumblers</name>
<short_description>&lt;p&gt;You'll be the host's favorite with such an elegant and tasteful gift. Purchasing for yourself? Bravo. You'll have the daily benefit of seeign something beautiful in your cabinets every time you peek inside. Set of Two.&lt;/p&gt;</short_description>
<description>&lt;div&gt;Sharing a drink is symbolic of celebration, gathering and friendship. These special glasses, made exclusively for TATCHA by expert artisans in Shizuoka near Mt. Fuji, combine three cherished forms of Japanese craftsmanship &amp;mdash; handmade washi paper (set at the base); gold-leafing and urushi lacquering on the exterior. Each one is a piece of art, hand-crafted to last for generations.&amp;nbsp;&lt;/div&gt;&#xD;
&lt;div&gt;&amp;nbsp;&lt;/di
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<i class="fa fa-spinner fa-spin"></i>
<i class="fa fa-circle-o-notch fa-spin"></i>
<i class="fa fa-refresh fa-spin"></i>
<i class="fa fa-cog fa-spin"></i>
<i class="fa fa-spinner fa-pulse"></i>
@stevenyxu
stevenyxu / index.html
Last active August 29, 2015 14:14
Font Awesome
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<i class="fa fa-spinner fa-spin"></i>
<i class="fa fa-circle-o-notch fa-spin"></i>
<i class="fa fa-refresh fa-spin"></i>
<i class="fa fa-cog fa-spin"></i>
<i class="fa fa-spinner fa-pulse"></i>
var page = require('webpage').create();
page.open('http://myfigurecollection.net/', function(status) {
var srcs = page.evaluate(function() {
var imgs = document.querySelectorAll('img');
var l = imgs.length;
var res = [];
for (var i = 0; i < l; i++) {
res.push(imgs[i].src);
}
return res;
DROP TABLE IF EXISTS sessions;
DROP TABLE IF EXISTS events;
DROP TABLE IF EXISTS userCookies;
DROP TABLE IF EXISTS users;
CREATE TABLE sessions (
sessionID INT,
userHTTPCookie INT,
datetime TIMESTAMP,
IPAddress TEXT,
### Keybase proof
I hereby claim:
* I am stevenyxu on github.
* I am stevenxuca (https://keybase.io/stevenxuca) on keybase.
* I have a public key whose fingerprint is CDE4 3E21 B230 3957 684E E4AF 6EC2 D557 8079 201C
To claim this, I am signing this object: