| fecha | operación | stock | total disponible |
|---|---|---|---|
| 2017-05-29T19:16:31 | bsale | 21 | 21 |
| 2017-05-29T19:16:31 | bsale | 21 | 21 |
| 2017-05-29T19:34:43 | orden | 1 | 20 |
| 2017-05-29T19:34:47 | bsale | 21 | 21 |
| 2017-05-29T19:38:35 | orden | 1 | 20 |
| 2017-05-29T19:41:53 | orden | 1 | 19 |
| 2017-05-29T19:45:53 | orden | 1 | 18 |
| 2017-05-29T19:48:39 | orden | 1 | 17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>grid</title> | |
| <style> | |
| body {padding: 0; margin: 0;} | |
| .container { | |
| display: grid; | |
| grid-template-rows: 200px repeat(4, 100px); | |
| grid-template-columns: repeat(4, 1fr); | |
| grid-template-areas: "header header header header" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'ostruct' | |
| require 'set' | |
| require 'rspec' | |
| # rspec variants.rb | |
| # | |
| RSpec.describe "grouping variants by headings, and using variant headings to filter products" do | |
| before do | |
| # Create shop | |
| @shop = Shop.new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* The store | |
| yes yes technically this *does* mutate state, but it's functionally the same | |
| Usage: | |
| let initialState = { | |
| todos: [] | |
| } | |
| store = new Store({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package client | |
| import ( | |
| "net/http" | |
| "net/http/httptest" | |
| ) | |
| // A *http.Client that talks directly to an http.Handler | |
| // instead of going over the network | |
| // Useful to testing your Go APIs with the same client you provide to your users |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| source "https://rubygems.org" | |
| gem "rspec" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # gem install thread | |
| # | |
| # run with: | |
| # SUBDOMAIN=foobar btc runner image_backup.rb | |
| # | |
| require 'open-uri' | |
| require 'fileutils' | |
| require "thread/pool" | |
| require "logger" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'uri' | |
| require 'net/http' | |
| require 'json' | |
| # simple SSE client in Ruby | |
| def stream(url, query = nil, parser, &block) | |
| parts = URI.split(url) | |
| uri = URI(url) | |
| if query | |
| uri.query = URI.encode_www_form query |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Gemfile | |
| # gem "bootic_client" | |
| # group :test do | |
| # gem "rack-test" | |
| # end | |
| # spec/support/api_request_helper.rb | |
| # Usage in your API tests | |
| # it "loads the root resource" do | |
| # authorize!(user_id: 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "fileutils" | |
| require "open-uri" | |
| require "thread" | |
| require "listen" | |
| # dependencies: | |
| # gem install listen | |
| # | |
| # Put this file in ~/btc/themes.rb | |
| # Theme management |