Skip to content

Instantly share code, notes, and snippets.

View rublev's full-sized avatar
😀

rublev

😀
View GitHub Profile
@rublev
rublev / index.pug
Created November 23, 2018 03:16
Simple Page Transition
#app
transition(name="page", :duration="1300")
.page(:is="page" @change-page="onChangePage")
script#start(type="text/x-template")
.start
.inner
h1.title.enter-1 Page Transition Demo
.button-wrapper.enter-2
button.button.button-start(
@rublev
rublev / file0.sh
Created November 15, 2018 02:24
node.js+postgresqlをherokuで動かすメモ ref: http://qiita.com/ta9to/items/f7b55246cfe42ed14743
$ heroku addons:add heroku-postgresql:dev
$ heroku addons:docs heroku-postgresql # ブラウザでドキュメント開く
$ heroku pg:wait # データベースの準備ができるまで5分くらいかかる。その進捗ステータスを表示する
$ heroku config | grep HEROKU_POSTGRESQL
$ heroku pg:promote HEROKU_POSTGRESQL_COPPER_URL
@rublev
rublev / gist:76c8e1b0f9a7ee00f662dbfb2969cd9e
Created September 18, 2018 21:08 — forked from jedi4ever/gist:d095656ae0f0eca4a83ebb2b331da367
Chromium build with proprietary codecs
@rublev
rublev / introrx.md
Created February 1, 2018 21:46 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@rublev
rublev / gist:cb7a9e64c3d4741c5f64d9d17366ec57
Created May 8, 2017 15:18 — forked from hSATAC/gist:5343225
Http Redirect in Golang
package main
import (
"log"
"net/http"
)
func redirect(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "http://www.google.com", 301)
@rublev
rublev / remove-gh-stars.js
Created April 7, 2017 22:36
remove all github stars
// open console and run cmd+v every time
var i = 0;
var el = document.querySelectorAll('[aria-label="Unstar this repository"]');
function myLoop () {
setTimeout(function () {
el[i].click()
i++;
if (i < 30) {
@rublev
rublev / A.markdown
Created January 10, 2017 19:18 — forked from umpirsky/A.markdown
Sublime Text Monokai Sidebar Theme.
@rublev
rublev / README.md
Created August 28, 2016 17:23 — forked from adewes/README.md
Ebay Ads - Bot. Because who wants to write messages by hand...

To use this bot:

  • Download ads_bot.py and requirements.txt.
  • Type pip install -r requirements.txt to install the requirements.
  • Fill out the required information in the Python file.
  • Ideally, create a (free) Slack account and set up a web hook to receive notifications from the bot.
  • Run the script :)
  • Relax and be ready to answer incoming calls :D
@rublev
rublev / my-component.spec.js
Created August 4, 2016 15:40 — forked from thevangelist/my-component.spec.js
The only React.js component test you'll ever need (Enzyme + Chai)
import React from 'react';
import { shallow } from 'enzyme';
import MyComponent from '../src/my-component';
const wrapper = shallow(<MyComponent/>);
describe('(Component) MyComponent', () => {
it('renders without exploding', () => {
expect(wrapper).to.have.length(1);
});
/*------------------------------------------------------------------------------
create two tables
insert data into them
run with:
psql -f file.sql dbname
------------------------------------------------------------------------------*/