Skip to content

Instantly share code, notes, and snippets.

View B3nnyL's full-sized avatar
🏵️
Building Subrosa

B3nnyL

🏵️
Building Subrosa
View GitHub Profile
{
"consumer": {
"name": "pactflow-ui-saas"
},
"provider": {
"name": "pactflow-application-saas"
},
"interactions": [
{
"description": "a request for a bdc cross contract verification",
@B3nnyL
B3nnyL / npm-init.sh
Created July 24, 2020 23:15
Setup your default npm package information
NAME=""
EMAIL=""
URL=""
LICENSE="MIT"
VERSION="0.1.0"
npm set init.author.name $NAME
npm set init.author.email $EMAIL
npm set init.author.url $URL
@B3nnyL
B3nnyL / qfind.sh
Created September 7, 2019 06:56
Quickly find files that contain a string in a directory
# qfind - used to quickly find files that contain a string in a directory
qfind () {
find . -exec grep -l -s $1 {} \;
return 0
}
@B3nnyL
B3nnyL / a-hitchhiker-guide-on-hyperjs-theme.md
Last active December 7, 2022 09:28
A hitchhiker guide on hyper.js theme

Prerequisite

  • An editor (eg. vscode, vim)
  • A mac where Hyper.js installed (for windows and linux users, you can also follow this guide, but please find your hyper configuration code location from our website)
  • Chrome (which will be very helpful on inspection and experiments)

Some background knowledge...

Hyper.js is a terminal built with Electron, empowered by React, Redux and XTerm.js. It's fast, sleek and flexible. Everyone can simply customise its interface with css and add some playfulness by writing few lines of javascript codes. Hyper.js also has a detailed API reference which you may find helpful for advancing customisation.

@B3nnyL
B3nnyL / scrollbar-style.css
Created December 1, 2018 10:08
Scrollbar-style
::-webkit-scrollbar-thumb {
border: none;
-webkit-box-shadow: none;
box-shadow: none;
background: aqua;
-webkit-border-radius: 4px;
border-radius: 4px;
min-height: 40px;
}
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello !"
end
end
hello = HelloWorld.new("World")
@B3nnyL
B3nnyL / hello_world.rb
Created October 18, 2018 06:09
Hello World Examples
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello !"
end
end
hello = HelloWorld.new("World")
@B3nnyL
B3nnyL / StorybookVueProjectSetup .md
Last active October 21, 2018 20:58
A simple how-to guide for setting up Storybook+Vue project via StorybookCLI and VueCLI3
  • Step 1: Initiate a Vue project with Vue CLI 3
  • Step 2: Install @storybook/cli@4.0.0-alpha.24 globally: npm i -g @storybook/cli@4.0.0-alpha.24
  • Step 3: Add Storybook to Vue project via storybook CLI: getStorybook
  • Step 4: Update @storybook/vue to 4.0.0-alpha.24: npm i @storybook/vue@^4.0.0-alpha.24
  • Step 5: Install babel-preset-vue as devDependency: npm i -save-dev babel-preset-vue
  • Start storybook and happy storybook time:
<template>
<div class="feature-grid">
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-12 col-12" >
<feature-block :feature="feature" v-on:add-cents="onAddCent($event, feature)"></feature-block>
</div>
</div>
</div>
</div>