Skip to content

Instantly share code, notes, and snippets.

View darasus's full-sized avatar
🏠
Working from home

Ilia Daraselia darasus

🏠
Working from home
View GitHub Profile
@darasus
darasus / prettier_command
Last active August 23, 2017 14:37
Prettier format command
prettier --write --single-quote --trailing-comma all "src/**/*.js" && prettier --write --single-quote --trailing-comma all "src/*.js"
@darasus
darasus / index.js
Last active August 12, 2018 20:47
Handle Stripe charge with source using express.js
const STRIPE_SECRET = 'STRIPE_SECRET';
// const keyPublishable = 'pk_test_19ahJzPH2xE2Dd9zhqv6R6fR';
const STRIPE_SECRET = 'sk_test_ZqMsK6wX4raLqGcICamzZiP9';
const express = require('express');
const bodyParser = require('body-parser');
const path = require('path');
const stripe = require('stripe')(STRIPE_SECRET);

⚠️ NOTE: use notes like this to emphasize something about the PR. This could include other PRs this PR is built on top of; new or removed environment variables; reasons for why the PR is on hold; or anything else you would like to draw attention to

Description

A few sentences describing the overall goals of the pull request's commits. What is the current behavior of the app? What is the updated/expected behavior with this PR?

@darasus
darasus / exercises-this.md
Last active October 30, 2018 12:37
Exercises on `this`

Exercise #1

var test = {
  prop: 42,
  func: function() {
    return this.prop;
  },
};

Release Notes

Summer UX improvements in settings panel

7/16/2018

new

We've updated our settings with a bunch of gentle UX improvements. A groundwork for some upcoming product updates 😎

Wistia videos support

7/14/2018

fix

Wistia is joining the list of supported video platforms. To add your Wistia video, simply copy its url from the browser and wrap it in a video markdown to turn this: ![Wistia is for Marketing](https://wistia.com/medias/ve7pzy0d3y)

{
"Use Non-ASCII Font" : true,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : 0,
"Blue Component" : 0.99607843137254903,
"Red Component" : 0.17254901960784313
},