Skip to content

Instantly share code, notes, and snippets.

View curl_test2.sh
curl localhost:1026/v2/entities -H 'content-type: application/json' -d @- <<EOF
{"id": "urn:ngsi-ld:Store:123", "type": "Store", "address": {"type": "PostalAddress", "value": {"streetAddress": "Bornholmer Straße 65", "addressRegion": "Berlin", "addressLocality": "Prenzlauer Berg", "postalCode": "18446744073709551615"}, "metadata": {"verified": {"value": "true", "type": ": Boolean"}}}, "location": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "value": {"type": "geo:json", "va
View MOD_enwiki_upos_skipgram_300_3_2019_75ab8ca6b8c25f1c67aabbf6c0d7a77e_config.json
{"embeddings": [{"tensorName": "WebVectors", "tensorShape": [300, 10], "tensorPath": "https://gist.githubusercontent.com/akutuzov/d7ba72373acb1bec0f7755d1116d0692/raw/82be7b62354a536d2296f433abc9a2f3a1cd252d/MOD_enwiki_upos_skipgram_300_3_2019_75ab8ca6b8c25f1c67aabbf6c0d7a77e_tensor.tsv", "metadataPath": "https://gist.githubusercontent.com/akutuzov/41a23219f58b67a457fd234bb472d8e5/raw/972b771b53e433fdb82e307138cbc1d8ed4e34df/MOD_enwiki_upos_skipgram_300_3_2019_75ab8ca6b8c25f1c67aabbf6c0d7a77e_metadata.tsv"}]}
View MOD_enwiki_upos_skipgram_300_3_2019_75ab8ca6b8c25f1c67aabbf6c0d7a77e_tensor.tsv
0.0543050542473793 0.05964503437280655 0.035784762352705 -0.01826576516032219 -0.04839814454317093 -0.09267963469028473 0.0437164343893528 -0.01108931191265583 -0.11726446449756622 -0.09166260808706284 0.005836112890392542 0.009939170442521572 0.022085556760430336 -0.020177679136395454 0.15211863815784454 0.03855928033590317 0.07594779878854752 0.04229447618126869 0.01688040792942047 0.08805758506059647 -0.08422452211380005 -0.022195681929588318 -0.05292874574661255 -0.04369962587952614 -0.05467081442475319 -0.02159666270017624 -0.0010243378346785903 -0.08059549331665039 -0.011365579441189766 -0.018453912809491158 0.10043903440237045 -0.016609178856015205 0.06725820153951645 0.0321650467813015 0.029113832861185074 -0.04413523152470589 0.03490397334098816 0.02991548366844654 0.0770941823720932 0.07658110558986664 0.04733854532241821 0.02647208981215954 -0.0338527075946331 -0.07385065406560898 -0.036456819623708725 0.018998244777321815 0.03196641802787781 -0.018635254353284836 -0.08041398227214813 0.09992367774
@pongib
pongib / README.md
Last active Jan 29, 2020 — forked from pcan/README.md
Node.js plain TLS Client & Server, 2-way Cert Auth
View README.md

Node.js TLS plain TLS sockets

This guide shows how to set up a bidirectional client/server authentication for plain TLS sockets.

Prepare certificates

Generate a Certificate Authority:

openssl req -new -x509 -days 9999 -keyout ca-key.pem -out ca-crt.pem
View lambda-recreate.py
#!/usr/bin/env python
import boto3
import logging
import os
import shutil
import zipfile
from botocore.errorfactory import ClientError
@Tardencilla
Tardencilla / LoginController.php
Created Jan 29, 2020
Prevent browser's back button login after logout in Laravel
View LoginController.php
public function logout(Request $request)
{
$this->guard()->logout();
$request->session()->invalidate();
$request->session()->regenerateToken();
return $this->loggedOut($request) ?: redirect()->back();
}
@choco-bot
choco-bot / FilesSnapshot.xml
Created Jan 29, 2020
qpmx v1.6.0 - Passed - Package Tests Results
View FilesSnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\qpmx\qpmx-1.6.0_msvc2017_64.zip.txt" checksum="B22E18AA7E06A261B7E43425B374AA74" />
<file path="C:\ProgramData\chocolatey\lib\qpmx\qpmx.nupkg" checksum="9703251CC44678DF092CB5460602FBC0" />
<file path="C:\ProgramData\chocolatey\lib\qpmx\qpmx.nuspec" checksum="7B2A2B2E498B380B753B3F7D442C6386" />
<file path="C:\ProgramData\chocolatey\lib\qpmx\tools\chocolateyinstall.ps1" checksum="09453CED20ECC12F7009CB72A7E9CD6E" />
<file path="C:\ProgramData\chocolatey\lib\qpmx\tools\LICENSE.txt" checksum="3A4B0268BAA0EBE89884EA1403DC7EA4" />
<file path="C:\ProgramData\chocolatey\lib\qpmx\tools\qpmx.dll" checksum="5775D0EBF30F08505377043D05555EDC" />
<file path="C:\ProgramData\chocolatey\lib\qpmx\tools\qpmx.exe" checksum="6C1C8A08F731CBF727E127DB6F922485" />
@mrcnc
mrcnc / readme.md
Created Jan 29, 2020
getting started with conda
View readme.md

getting started with conda

Download Anaconda for a hassle-free way of configuring your development environment.

Download the Python 3 version b/c Python 2 is no longer maintained

If you're wondering "Why not use virutalenv and/or pip?", Anaconda (aka conda) is built specifically for working with the data science ecosystem of languages (Python, R, Julia) and libraries (scipy, numpy, pandas, scikit-learn, plotly/matplotlib), many of which require non-Python build requirements like C/C++ and Fortran compilers.

View test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.