- Set up your
.vscode/launch.json
file with the code given above. Note that the code is approximate - your project's might differ. - Run your development server - in my case, with Webpack Dev Server, via a npm script such as
npm start
. - Set a breakpoint in your main JS/JSX module.
- Switch to the Run & Debug in VSCode - usually second option of the VS Code left side bar.
- Run the
Debug in Chrome Canary
task.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ECPEV - PSP - C | |
SUMAR PER TRANSFORMAR | |
VALENTIA PER TRANSFORMAR I TRANSFORMAR AMB SENTI COMÚ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
per a la | |
UN PROGRAMA PER A LA MAJORIA | |
ÍNDEX DE COMPROMISOS | |
1. El primer mandat optimista, 2019-2023.....................................................................................7 | |
1.1.- Un model de societat justa, cohesionada i inclusiva............................................8 | |
1.2.- Un fort impuls en la transformació urbana, la cohesió territorial, | |
i en la cohesió i inclusió social...........................................................................................9 | |
Bloc 1: Transformació urbana | |
2. Un projecte per a la transformació urbana, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kudos for this repo: https://github.com/simme/node-http-digest-client | |
// Original `node-http-digest-client` license: Copyright (c) 2012, Simon Ljungberg <[email protected]> | |
// Adapted by @ddpelayo / github.com/davidpelayo / davidpelayo.com - to Modern Javascript | |
const HTTPDigest = function () { | |
const crypto = require('crypto'); | |
let http = require('http'); | |
const HTTPDigest = function (username, password, https) { | |
this.nc = 0; | |
this.username = username; |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
elem.clientLeft
,elem.clientTop
,elem.clientWidth
,elem.clientHeight
elem.getClientRects()
,elem.getBoundingClientRect()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var files = document.querySelectorAll('.js-details-target'); for(var i = 0; i<files.length; i++) {files[i].click();}})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# Make sure you have a recent version: the code points that Powerline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# With execute permissions of this bash file. | |
# Checkout on master branch | |
# Replace <custom_branch> by the branch you want to avoid to be removed (in case any) - for instance: development / staging | |
# Run: | |
# - ./git-delete-merged-script.sh -h --- print help | |
# - ./git-delete-merged-script.sh -r origin --- to delete remote branches based on remote: origin | |
# - ./git-delete-merged-script.sh -l origin --- to delete local branches based on remote: origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# With execute permissions of this bash file. | |
# Checkout on master branch | |
# Replace <custom_branch> by the branch you want to avoid to be removed (in case any) - for instance: development / staging | |
# Run: | |
# - ./git-delete-merged-script.sh -h --- print help | |
# - ./git-delete-merged-script.sh -r origin --- to delete remote branches based on remote: origin | |
# - ./git-delete-merged-script.sh -l origin --- to delete local branches based on remote: origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mailbox | |
import csv | |
writer = csv.writer(open("mbox-output.csv", "wb")) | |
for message in mailbox.mbox('file.mbox/mbox'): | |
writer.writerow([message['message-id'], message['subject'], message['from']]) |
NewerOlder