- Open VSCode,
cmd
+shift
+p
- Search for
Preferences : Configure Runtime Arguments
- This will open the
argv.json
file with startup setting for VSCode.
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
from sentence_transformers import SentenceTransformer, util | |
from torch import Tensor | |
from sklearn.metrics.pairwise import cosine_similarity | |
from scipy.signal import argrelextrema | |
import numpy as np | |
import math | |
import constants as C | |
import openai | |
import os | |
import json |
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
const jsdom = require("jsdom"); | |
const { JSDOM } = jsdom; | |
const path = require('path') | |
const fetch = require('node-fetch') | |
const finalhandler = require('finalhandler') | |
const http = require('http') | |
const serveStatic = require('serve-static') | |
function createServer (port, root = path.join(__dirname, 'dist')) { | |
const serve = serveStatic(root) |
Using the REPL build-specific
I'm using Calva with VSCode. My steps
- watch the build
D:\projects\census\census-geojson (master -> origin) ([email protected])
λ shadow-cljs watch lib
- fire runtime in separate terminal
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
{ | |
"anonymousId": "507f191e810c19729de860ea", | |
"context": { | |
"active": true, | |
"app": { | |
"name": "InitechGlobal", | |
"version": "545", | |
"build": "3.0.1.545", | |
"namespace": "com.production.segment" | |
}, |
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
@Echo off | |
setlocal ENABLEDELAYEDEXPANSION | |
echo. | |
echo This script runs through all the .svg files in the folder within which this file is contained and outputs an optimized version to the 'out' folder here... | |
:: echo (type q to quit at any question) | |
echo. | |
:: count how many files we need to convert before converting! | |
set /a total=0 |
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
# Sources: | |
# http://mcdc2.missouri.edu/pub/data/sf32000/Techdoc/ch4_summary_level_seq_chart.pdf | |
# http://www2.census.gov/acs2011_1yr/summaryfile/ACS_2011_SF_Tech_Doc.pdf | |
SUMMARY_LEVEL_DICT = { | |
"010","United States", | |
"020","Region", | |
"030","Division", | |
"040","State", | |
"050","State-County", | |
"060","State-County-County Subdivision", |
date: 2019-01-01 title: 'The egghead pro audio equipment' description: 'Every egghead instructor receives an amazing world class pro audio recording setup before they publish their first lesson.' categories: ['instructor'] published: true shareImage: 'https://res.cloudinary.com/dg3gyk0gu/image/upload/v1583832106/og-image-assets/audio-equipment-3.png' redirect_from:
- /set-up-your-audio/
- /set-up-your-audio
I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.
So it might be really unintuitive at first but lambda functions have three states.
- No VPC, where it can talk openly to the web, but can't talk to any of your AWS services.
- VPC, the default setting where the lambda function can talk to your AWS services but can't talk to the web.
- VPC with NAT, The best of both worlds, AWS services and web.
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
// Create our server | |
var server; | |
server = http.createServer(function(req,res){ | |
// Set CORS headers | |
res.setHeader('Access-Control-Allow-Origin', '*'); | |
res.setHeader('Access-Control-Request-Method', '*'); | |
res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET'); | |
res.setHeader('Access-Control-Allow-Headers', '*'); | |
if ( req.method === 'OPTIONS' ) { | |
res.writeHead(200); |
NewerOlder