Skip to content

Instantly share code, notes, and snippets.

@hicaro
hicaro / StripeCardsSection.js
Created September 16, 2021 13:36 — forked from lfalke/StripeCardsSection.js
Usage of react-stripe-elements with Material UI (v1.0) styling
import React, { PureComponent } from 'react'
import Grid from 'material-ui/Grid'
import { CardNumberElement, CardExpiryElement, CardCVCElement } from 'react-stripe-elements'
import StripeElementWrapper from './StripeElementWrapper'
export default class extends PureComponent {
static displayName = 'StripeCardsSection'
@hicaro
hicaro / states_hash.json
Created September 9, 2021 00:51 — forked from mshafrir/states_hash.json
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
#! /bin/bash
######################################################################
#
# This script generates an SSL certficate for local development. To
# execute the script, run `bash create-dev-ssl-cert.sh`. Sudo is
# needed to save the certificate to your Mac KeyChain. After the cert
# is generated, you can use `HTTPS=true yarn start` to run the web
# server.
#
{
"Africa/Abidjan": "+00:00",
"Africa/Accra": "+00:00",
"Africa/Addis_Ababa": "+03:00",
"Africa/Algiers": "+01:00",
"Africa/Asmara": "+03:00",
"Africa/Asmera": "+03:00",
"Africa/Bamako": "+00:00",
"Africa/Bangui": "+01:00",
"Africa/Banjul": "+00:00",
@hicaro
hicaro / certificate.js
Last active November 14, 2020 15:59
SSL Certificate in express app
const https = require("https");
const fs = require("fs");
const express = require("express");
// read keys
const key = fs.readFileSync("localhost.key");
const cert = fs.readFileSync("localhost.crt");
// create express app
const app = express();
@hicaro
hicaro / gist:ee4d29de3e029fae28e9b5a1b122778e
Created August 27, 2020 17:03 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"my-sample-project": {
"architect": {
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
{
"defaults": {
"serve": {
"port": 5003,
"host": "example.com"
}
}
}
ng serve --host example.com --port 5003
{
"name": "sass-simple-set-up",
"version": "1.0.0",
"description": "No brainer Sass set up",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"scss": "node-sass assets/scss -o assets/css",
"scss-watch": "node-sass --watch assets/scss -o assets/css"
},