Skip to content

Instantly share code, notes, and snippets.

Avatar

Róbert Oroszi oroce

  • vernsurance
  • Budapest, Hungary
View GitHub Profile
View .functions
function onport(){
lsof -n -i4TCP:$1 | grep LISTEN
}
function tmuxhelp() {
open "https://gist.github.com/henrik/1967800"
}
View package.json
{
"scripts": "mocha -r should '*.spec.js'"
}
@oroce
oroce / action.js
Last active Sep 4, 2018
testing an action
View action.js
export function simple(num) {
return {
type: 'add',
payload: {
num
}
};
}
export function withDispatch(num) {
View chrome-version.html
<!DOCTYPE html><!--
about:version template page
--><html xmlns="http://www.w3.org/1999/xhtml" id="t" dir="ltr" lang="en" i18n-processed=""><head>
<meta charset="utf-8" />
<title>About Version</title>
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css" />
<link rel="stylesheet" href="chrome://version/about_version.css" />
View analyze-intellyo.sh
npm i https://github.com/purposeindustries/yslow-nodejs
curl "https://www.webpagetest.org/export.php?test=170710_HJ_1AD8&run=2&cached=0&bodies=1&pretty=1" -o blog.intellyo.com.har
$(npm bin)/yslow-nodejs blog.intellyo.com.har
View .lintr
linters: with_defaults(line_length_linter(120))
exclusions: list("lint.R")
View index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ESNextbin Sketch</title>
<!-- put additional styles and scripts here -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<!-- put markup and other contents here -->