Skip to content

Instantly share code, notes, and snippets.

View lcoenen's full-sized avatar

Loïc Coenen lcoenen

View GitHub Profile
curl 'https://flex-api.sharetribe.com/v1/api/transactions/initiate'
-H 'Accept: application/transit+json'
-H 'Referer: http://localhost:3000/l/the-windows-glenmire/5c0a5516-51d0-459a-88be-2b61af89f186/checkout'
-H 'Origin: http://localhost:3000'
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtYXJrZXRwbGFjZS1pZCI6IjViZGMzN2EwLWU1YTctNDFiZC05NzY4LTA1MTAzZmMyNDNlOSIsImNsaWVudC1pZCI6IjJlMjljMGU2LTcyZTgtNGVlNi1hNTlkLTQ5ODRiN2U4ZDZlMSIsInRlbmFuY3ktaWQiOiI1YmRjMzdhMC1lNWE3LTQxYmQtOTc2OC0wNTEwM2ZjMjQzZTkiLCJzY29wZSI6InVzZXIiLCJleHAiOjE1NDc0NjM3NzcsInVzZXItaWQiOiI1YzBhNTUxNi1hOWYxLTRlYzUtYmNlMS02YmMxNTk4YzhhN2MiLCJ1c2VyLXJvbGVzIjpbInVzZXIucm9sZS9wcm92aWRlciIsInVzZXIucm9sZS9jdXN0b21lciJdfQ.4ISLov8EhoFvD6tnf1H4d5jw1EgVlncRo5V_rIzj__k'
-H 'Content-Type: application/transit+json'
--data-binary '["^ ","~:transition","transition/request","~:processAlias","preauth

How to use CSS on Github

JSX is the language we use in React. This is NOT HTML, albeit it is similar, but they are rules to respect when it comes to CSS:

  1. To link a class to a tag, use the following synthax:
  1. NEVER use inline styling

How to use CSS on Github

JSX is the language we use in React. This is NOT HTML, albeit it is similar, but they are rules to respect when it comes to CSS:

  1. To link a class to a tag, use the following synthax:

    <tag className={css.theClassYouWantToUse}>

  2. NEVER use inline styling

const link = <a href="mailto:support@whichost.com">
<FormattedMessage id="PayoutPreferencesPage.stripeAlreadyConnectedLink" />
</a>
message = intl.formatHTMLMessage(
{ id:"PayoutPreferencesPage.stripeAlreadyConnected" },
{
here: link
}
)
class FeesTabs extends React.Component {
state = {
// value: false,
value: 1,
};
handleChange = (event, value) => {
this.setState({ value });
};
Yarn add v1.16.0
[1/4] Resolving packages...
warning fluence > fluence-monitoring > web3 > web3-bzz > swarm-js > fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
warning fluence > fluence-monitoring > web3 > web3-bzz > swarm-js > tar.gz@1.0.7: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > dotenv-webpack@1.7.0" has unmet peer dependency "webpack@^1 || ^2 || ^3 || ^4".
[4/4] Building fresh packages...
error /Users/jt/Documents/code/current/koos/node_modules/scrypt: Command failed.
Exit code: 1
did:muport:QmQJoNErZjBbsoe4PfyisuBZX1ZNVCjfD7y9AGYhW5E9w2
did:muport:QmQJoNErZjBbsoe4PfyisuBZX1ZNVCjfD7y9AGYhW5E9w2
@lcoenen
lcoenen / keybase.md
Last active September 2, 2019 11:39

Keybase proof

I hereby claim:

  • I am lcoenen on github.
  • I am lcoenen (https://keybase.io/lcoenen) on keybase.
  • I have a public key ASCJKU1c8uyydjPhABUPQBWei1D26ik9gVaGmno8QLVqyAo

To claim this, I am signing this object:

@lcoenen
lcoenen / Aspect log
Created September 5, 2019 17:32
As-pect
AS-pect⚡ Test suite runner [2.4.1]
[Log] Loading asc compiler
[Log] Compiler loaded in 430.424ms.
[Log] Using configuration /Users/lxx/xxx/server/as-pect.config.js
[Log] Using SummaryReporter
[Log] Including files: assembly/__tests__/**/*.spec.ts
[Log] Running tests that match: (:?)
[Log] Running groups that match: (:?)
[Log] Effective command line args: