Based on https://github.com/robertgaal/notes-export
- + writeToFile in UTF8
- + format name as yyyymmddhhmmss
A = Rock | |
B = Paper | |
C = Scissors | |
X = Rock = 1 | |
Y = Paper = 2 | |
Z = Scissors = 3 | |
PART 1 |
Based on https://github.com/robertgaal/notes-export
on idle | |
set MyVPNName to "VPN NAME IN NETWORK PREFERENCES" | |
tell application "System Events" | |
tell current location of network preferences | |
set myConnection to the service MyVPNName | |
if myConnection is not null then | |
if current configuration of myConnection is not connected then | |
connect myConnection |
#!/bin/bash | |
YC_TOKEN="value" | |
YC_FOLDER_ID="value" | |
YC_INSTANCE_NAME="some name" | |
IAM_TOKEN=$( | |
curl -s -d "{\"yandexPassportOauthToken\":\"${YC_TOKEN}\"}" \ | |
https://iam.api.cloud.yandex.net/iam/v1/tokens |\ | |
jq --raw-output .iamToken |
const nodemon = require('nodemon'); | |
const chalk = require('chalk'); | |
const defaultNodemonOptions = { | |
execMap: { js: 'node' }, | |
runOnChangeOnly: true, | |
ext: 'noop', | |
watch: ['noop/'], |
const nodemon = require('nodemon'); | |
const chalk = require('chalk'); | |
const defaultNodemonOptions = { | |
execMap: { js: 'node' }, | |
runOnChangeOnly: true, | |
ext: 'noop', | |
watch: ['noop/'], |
{ | |
"js": [ | |
"js/common-16b95.js", | |
"js/app-26c95.js" | |
], | |
"css": [ | |
"css/common-902b1.css", | |
"css/app-82c1b.css" | |
] | |
} |
<!doctype html> | |
<script> | |
const UPDATES_URL = 'https://api.telegram.org/bot152495481:AAHOp1v7pz-cV3L2C-xiivqNi0qbVOOVNtQ/getUpdates'; | |
</script> |
import { remove } from 'lodash'; | |
const MANIFEST_CHUNK_NAME_REGEX = /.*manifest\..+\.js/; | |
export default function (templateParams, compilation) { | |
const stats = { | |
styles: templateParams.htmlWebpackPlugin.files.css, | |
scripts: templateParams.htmlWebpackPlugin.files.js | |
}; |
{ | |
... | |
module: { | |
loaders: [ | |
{test: CSS_REGEX, loaders: ['style', 'css', 'postcss']}, | |
] | |
}, | |
postcss: () => [require('stylelint'), require('postcss-reporter')] | |
} |