Skip to content

Instantly share code, notes, and snippets.

@cbrwizard
cbrwizard / LitHunt-README.md
Last active July 14, 2020 13:43
LitHunt.com early readme

LitHunt

ProductHunt for books.

UX

Human roles

  • Guest
  • User

Guest

@cbrwizard
cbrwizard / gist:ebb2bca304255decc5feafc0db20bd1c
Created March 9, 2018 16:03
Verifying my Blockstack ID is secured with the address 1LYVfvhkBjKtUQh5FQh9PDTRWEztMEaCXj https://explorer.blockstack.org/address/1LYVfvhkBjKtUQh5FQh9PDTRWEztMEaCXj
Verifying my Blockstack ID is secured with the address 1LYVfvhkBjKtUQh5FQh9PDTRWEztMEaCXj https://explorer.blockstack.org/address/1LYVfvhkBjKtUQh5FQh9PDTRWEztMEaCXj
@cbrwizard
cbrwizard / keybase.md
Created November 19, 2017 07:48
keybase.md

Keybase proof

I hereby claim:

  • I am cbrwizard on github.
  • I am cbrwizard (https://keybase.io/cbrwizard) on keybase.
  • I have a public key ASA-J-Hg7sG5DYcwZgl2oI-rjuqCVwA4Kc_LijWc3Tj7Jwo

To claim this, I am signing this object:

const rawData = [
[[1,1,"X"],[2,2,"O"],[1,0,"X"],[0,1,"O"],[2,0,"X"],[2,1,"O"],[0,0,"X"]],
[[0,0,"X"],[0,2,"O"],[0,1,"X"],[2,0,"O"],[2,1,"X"],[2,2,"O"],[1,1,"X"]],
[[2,1,"X"],[1,2,"O"],[1,1,"X"],[1,0,"O"],[2,0,"X"],[0,2,"O"],[0,0,"X"],[0,1,"O"],[2,2,"X"]],
[[2,0,"O"],[0,1,"X"],[1,0,"O"],[2,1,"X"],[1,2,"O"],[0,0,"X"],[1,1,"O"]],
[[1,1,"X"],[2,1,"O"],[1,0,"X"],[0,2,"O"],[2,0,"X"],[0,0,"O"],[1,2,"X"]],
[[0,1,"X"],[1,1,"O"],[1,2,"X"],[2,2,"O"],[0,2,"X"],[1,0,"O"],[2,1,"X"],[2,0,"O"],[0,0,"X"]],
[[0,0,"X"],[1,0,"O"],[0,2,"X"],[1,2,"O"],[1,1,"X"],[2,2,"O"],[2,0,"X"]],
[[1,1,"O"],[0,2,"X"],[1,0,"O"],[0,1,"X"],[1,2,"O"]],
[[1,0,"X"],[0,0,"O"],[0,2,"X"],[0,1,"O"],[2,2,"X"],[1,2,"O"],[1,1,"X"],[2,0,"O"],[2,1,"X"]],
@cbrwizard
cbrwizard / .hyper.js
Last active May 8, 2017 12:19
for hyper sync
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
" The one and only vim config file.
" TODO:
" - Highlight end when cursor over do in Ruby.
" - LocalHistory.
" - Add a shortcut which runs autoformat by Rubocop, eslint, etc
" for a current file.
" Plugins
" With vim-plug
@cbrwizard
cbrwizard / main_page.jsx
Last active December 23, 2016 10:27 — forked from BlookHo/main_page.jsx
Rails + React - API для получения данных о прогнозе погоды по заданной link-endpoint с Yahoo. Может быть вставлен в любое место сайта.
let React = require("react");
require("es6-promise").polyfill();
let fetch = require('isomorphic-fetch');
let MainControls = require('./main_controls.jsx');
let LikeButton = require('./like_button.js.jsx');
import {Responsive, WidthProvider} from 'react-grid-layout';
// перепиши все require в import
const ResponsiveReactGridLayout = WidthProvider(Responsive);
// перенеси все объявления переменных после import-ов
@cbrwizard
cbrwizard / display_wheather.html.haml
Last active December 23, 2016 10:22 — forked from BlookHo/display_wheather.html.haml
API - для получения данных о прогнозе погоды по данной link-endpoint с Yahoo. Может быть вставлен в любое место сайта.
-#/**
-# * Created by aleks_i on 25.08.16.
-# */
- provide(:title, "Display")
%h3.test_weather
Прогноз погоды для: #{@title.inspect}
(https://developer.yahoo.com)
%hr
@cbrwizard
cbrwizard / _rollback.html.haml
Last active December 23, 2016 10:19 — forked from BlookHo/common_log.rb
Logging system with rollback - for user's data, organized in trees. User is selecting date to rollback tree history in logs list. Tree history is creating by adding or deleting tree nodes. Every action is logged and can be rollbacked to.
%h1 Return tree history to chosen date: #{@log_date_to_show}? (Your decision)
= link_to 'Yes, rollback tree history', rollback_logs_path(rollback_id: @common_log_id, rollback_date: @common_log_date),
method: :post, remote: true, class: [:bttn, :red]
= link_to 'No - examine tree', home_path, class: [:bttn, :green]
@cbrwizard
cbrwizard / api_controller.rb
Last active December 23, 2016 10:13 — forked from BlookHo/api_controller.rb
Rails + React.js. Подготовка и отображение информации для он-лайн аукциона для выбранного экземпляра - изображения. Выбрать изображение. Нажать Auction.
module Api
class ApiController < ApplicationController
def today_items
items = []
floor_prices = []
auction_ids = [] # можно эти строки объединить со следующими типа
all_auctions = Auction.select(:id, :item_id, :floor_price).all