Label | Count |
---|---|
auto-migrated | 1062577 |
Priority-Medium | 852268 |
Type-Defect | 783536 |
enhancement | 505553 |
bug | 377913 |
Type-Enhancement | 155995 |
question | 102693 |
feature | 60043 |
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
package main | |
import ( | |
"flag" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"strings" | |
) |
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 webSocket = new WebSocket('wss://echo.websocket.org'); | |
//Event listeners are the pillars upon which WebSockets are built. This event fires when the WebSocket is considered 'OPEN', | |
//which means that it has connected successfully. | |
webSocket.addEventListener('open', function(event) { | |
console.log('websocket connected successfully') //log this into the browser console so we can check if the websocket connected | |
}); | |
//This is a global reference to the websocket that we created. We need this because otherwise multiple JS |
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
[user] | |
email = your_email | |
name = your_username | |
[alias] | |
# git clone | |
cl = !git clone | |
# Git shallow clone for large repos | |
clq= !git clone --depth=1 | |
s = status | |
co = checkout |
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
def marc_to_dict(marcobj): | |
control_fields = ('001', '002', '003', '004', '005', '006', '007', '008', '009') | |
jsonobj = {} | |
jsonobj['leader'] = marcobj.leader | |
jsonobj['fields'] = [] | |
for field in marcobj.fields: | |
if field.tag in control_fields: | |
jsonobj['fields'].append( { field.tag : re.escape(field.data) } ) | |
else: | |
subdict = {} |
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
""" | |
Usage: | |
Make sure that redis is running on localhost (or adjust the url) | |
Install uvicorn or some other asgi server https://asgi.readthedocs.io/en/latest/implementations.html | |
pip install -u uvicorn | |
Install dependencies |
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
[ | |
{ name_pl: "Afganistan", name_en: "Afghanistan", code: "AF" }, | |
{ name_pl: "Albania", name_en: "Albania", code: "AL" }, | |
{ name_pl: "Algieria", name_en: "Algeria", code: "DZ" }, | |
{ name_pl: "Andora", name_en: "Andorra", code: "AD" }, | |
{ name_pl: "Angola", name_en: "Angola", code: "AO" }, | |
{ name_pl: "Anguilla", name_en: "Anguilla", code: "AI" }, | |
{ name_pl: "Antarktyka", name_en: "Antarctica", code: "AQ" }, | |
{ name_pl: "Antigua i Barbuda", name_en: "Antigua and Barbuda", code: "AG" }, | |
{ name_pl: "Arabia Saudyjska", name_en: "Saudi Arabia", code: "SA" }, |
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
version: '3.3' | |
services: | |
db: | |
volumes: | |
- app-db-data:/var/lib/postgresql/data/pgdata | |
deploy: | |
placement: | |
constraints: | |
- node.labels.${STACK_NAME}.app-db-data == true | |
es01: |
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
# one or the other, NOT both | |
[url "https://github"] | |
insteadOf = git://github | |
# or | |
[url "git@github.com:"] | |
insteadOf = git://github |
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/sh | |
apt-get install -y libreadline-dev libncurses5-dev libpcre3-dev \ | |
libssl-dev perl make build-essential git curl \ | |
unzip | |
git clone https://github.com/RedisLabsModules/password.git /tmp/password | |
git clone https://github.com/RedisLabsModules/rebloom.git /tmp/rebloom | |
git clone https://github.com/RedisLabsModules/redis-graph.git /tmp/redis-graph |
NewerOlder