Skip to content

Instantly share code, notes, and snippets.

@MarkPochert
MarkPochert / SassMeister-input-HTML.haml
Created March 24, 2015 06:38
Generated by SassMeister.com.
%section.join
.checkout
.checkout__plans
%h6 Select your plan
.checkout__plans__box
%a
1 month
%br
%span.price
(€22/Case)
function fetch_orders(exchange_url,redis_key){
u = url.parse(exchange_url)
console.log("LOS - " + redis_key);
var options = {
host: u.hostname,
path: u.path,
agent: false,
headers: {
'User-Agent': 'Mozilla/4.0 (compatible; MtGox node.js client)',
.6],[23.6101,20],[23.61082,0.01295],[23.611,2],[23.61434,0.01269],[23.6154,1.5],[23.61605,0.16175],[23.61799,0.1018],[23.62,10.00142464],[23.6202,28.89998],[23.62021,0.16538708],[23.6278,0.0101],[23.62791,0.01],[23.63,0.5],[23.63093,0.01361],[23.6332,0.31242],[23.64302,0.12649],[23.64383,0.03394],[23.64447,0.08056],[23.64648,4.27822],[23.64739,0.1018],[23.65,2],[23.6572,0.0101],[23.659,0.6],[23.665,0.08],[23.66568,0.02966],[23.66666,11.2816],[23.66699,0.1018],[23.6764,7],[23.67838,0.05508],[23.6791,6.07535],[23.683,0.66060803],[23.6866,0.0101],[23.69,5],[23.6946,2],[23.69582,0.11629],[23.69639,0.1018],[23.7,336.8776],[23.70152,0.11016],[23.70387,0.26133],[23.707,0.6],[23.70987,0.37670921],[23.71,15.02],[23.71008,4.21761588],[23.71599,0.1018],[23.716,0.0101],[23.71601,0.86785234],[23.72,10],[23.72001,38.88996],[23.72003,12.71457148],[23.7205,2],[23.72387,0.61319],[23.72396,0.01917],[23.72479,0.5],[23.73,10],[23.73403,0.09374],[23.73733,0.01],[23.74539,0.1018],[23.7454,0.0101],[23.74962,0.05076],[23.75,25.29491
require 'minitest/spec'
require "minitest/autorun"
require_relative "./../../lib/mtgox/client"
describe "Client" do
it "Offers" do
c = MtGox::Client.new
c.offers.size.must_equal 2
end
upstream unicorn {
server unix:/tmp/unicorn.urlshorter.sock fail_timeout=0;
}
server {
listen 80 default deferred;
# server_name example.com;
root /home/deployer/apps/urlshorter/current/public;
location ^~ /assets/ {
$ ->
$("#pxs_container").parallaxSlider()
$("#contactform").submit (e) ->
e.preventDefault()
$.get @action + "?callback=?", $(this).serialize(), (data) ->
if data.Status is 400
alert "Error: " + data.Message
else
alert "Success: " + data.Message
var item, line1, tmp, _i, _len;
line1 = [
{
data: []
}
];
tmp = [
{
data: [[Date.UTC(2010, 10, 1), 59.49], [Date.UTC(2010, 10, 4), 58.165], [Date.UTC(2010, 10, 6), 64], [Date.UTC(2010, 10, 8), 64], [Date.UTC(2010, 10, 9), 49.26]]
}
$(document).ready(function() {
$(".show_item_link").fancybox({
'speedIn' : 100,
'speedOut' : 100,
onStart: function(){
$.ajax({
url: 'items/170701661798',
dataType: 'script',
success: function(data){$('#results').html(data);}
-if @items.size > 0
#result_table
%table
%tr
%td Activ
%td Item_ID
%td Title
%td Price
%td Sold
$(document).ready(function(){
$("#search_button").click(function(){
$.getJSON('http://localhost:3000/items/search?search_term=Rea', function(data) {
$('#avg_price').append(data[1].item_id)
search_data = data
})
})
});