Skip to content

Instantly share code, notes, and snippets.

View daniel08s's full-sized avatar
🎯

Daniel Sousa daniel08s

🎯
  • Porto, Portugal
View GitHub Profile
@daniel08s
daniel08s / tasks.json
Created September 17, 2018 18:46
VS Code - Tasks to open files in browser
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
// Open in Chrome
{
"label": "Open in Chrome",
"group": {
"kind": "build",
{
// Uses the legacy module resolving.
"eslint._legacyModuleResolve": false,
// Always show the ESlint status bar item.
"eslint.alwaysShowStatus": true,
// Turns auto fix on save on or off.
"eslint.autoFixOnSave": false,
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+7",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+a",
"command": "-editor.action.blockComment",
@daniel08s
daniel08s / .gitconfig
Created November 19, 2018 14:13
Git config
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[rerere]
enabled = 1
autoupdate = 1
[core]
quotepath = false
@daniel08s
daniel08s / ConEmu.xml
Created November 19, 2018 14:20
ConEmu config file with Dracula Theme
<?xml version="1.0" encoding="utf-8"?>
<key name="Software" modified="2018-08-22 00:36:07" build="180626">
<key name="ConEmu" modified="2018-08-22 00:36:07" build="180626">
<key name=".Vanilla" modified="2018-11-16 00:50:24" build="180626">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Shells::PowerShell}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
@daniel08s
daniel08s / customAttr.html
Last active July 31, 2019 20:17
Dynamically changing content on CSS pseudo elements with custom attributes and attr() // Demo: https://jsbin.com/bezuraz
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<style type="text/css">
article {
display: block;
background: #ccc;
}
article::before {
@daniel08s
daniel08s / HowTo-MockServer-RegisterExpectationOnTheFly.js
Created April 9, 2023 19:52
How To - Create an expectation on the fly with MockServer
const mockServerClient = require('mockserver-client').mockServerClient;
const initialExpectation = {
'httpRequest': {
'method': 'POST',
'path': '/trigger',
'body': {
'value': 'example'
}
},