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 | |
declare -a arr=("build" "clean" "env" "fix" "fmt" "get" "install" "list" "run" "test" "tool" "version" "vet") | |
[ ${arr[$1]+abc} ] && go $@ || git $@ |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<kml xmlns='http://www.opengis.net/kml/2.2'> | |
<Document> | |
<name>London Transport Zone Map</name> | |
<description><![CDATA[This is a station accurate representation of the Transport for London Zone layout.<br><br>Zone information taken from http://www.tfl.gov.uk/assets/downloads/tube-dlr-trams-and-train-travelcard-zones-map.pdf]]></description> | |
<Folder> | |
<name>Untitled layer</name> | |
<Placemark> | |
<name>Zone 1</name> | |
<styleUrl>#poly-FFFFFF-3-115-nodesc</styleUrl> |
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
SELECT * | |
FROM | |
( | |
SELECT | |
schemaname | |
,objectname | |
,usename | |
,HAS_TABLE_PRIVILEGE(usrs.usename, fullobj, ‘select’) AS sel | |
,HAS_TABLE_PRIVILEGE(usrs.usename, fullobj, ‘insert’) AS ins | |
,HAS_TABLE_PRIVILEGE(usrs.usename, fullobj, ‘update’) AS upd |
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
Library not loaded: @loader_path/libSDL2-2.0.0.dylib | |
brew install sdl2 --universal | |
dyld: Symbol not found: __pcre_utf8_table1_size | |
Referenced from: /Users/user/Library/Application Support/Steam/steamapps/common/rocketleague/RocketLeague.app/Contents/MacOS/TAGame | |
Expected in: /usr/lib/libpcre.0.dylib | |
in /Users/user/Library/Application Support/Steam/steamapps/common/rocketleague/RocketLeague.app/Contents/MacOS/TAGame | |
Abort trap: 6 |
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 | |
SAVEIFS=$IFS | |
DANGLING=`docker images -f dangling=true | grep -v REPOSITORY | tr -s ' ' | cut -d' ' -f3` | |
IFS=$'\n' | |
DANGLING=($DANGLING) | |
IFS=$SAVEIFS | |
if [ ${#DANGLING[@]} -gt 0 ]; then | |
echo ${#DANGLING[@]} "dangling images to delete:" | |
echo ${DANGLING[*]} |
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 django.contrib.admin.options import BaseModelAdmin | |
from django.contrib.admin.views.autocomplete import AutocompleteJsonView | |
from django.contrib.admin.widgets import ( | |
AutocompleteSelect, AutocompleteSelectMultiple, | |
) | |
from django.utils.http import urlencode | |
from urllib.parse import unquote, quote_plus, parse_qsl | |
class AutocompleteUrl(object): |
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
country | latitude | longitude | name | |
---|---|---|---|---|
AF | 33.93911 | 67.709953 | Afghanistan | |
AG | 17.060816 | -61.796428 | Antigua and Barbuda | |
AI | 18.220554 | -63.068615 | Anguilla | |
AN | 12.226079 | -69.060087 | Netherlands Antilles | |
AO | -11.202692 | 17.873887 | Angola | |
AS | -14.270972 | -170.132217 | American Samoa | |
AT | 47.516231 | 14.550072 | Austria | |
AU | -25.274398 | 133.775136 | Australia | |
BA | 43.915886 | 17.679076 | Bosnia and Herzegovina |
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
[tool.poetry] | |
name = "myproject" | |
version = "0.0.1" | |
description = "" | |
authors = [] | |
[tool.poetry.dependencies] | |
django-moneyfield = {git = "https://github.com/dangerfarms/django-moneyfield.git"} | |
[build-system] |
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 { Database, Resource: SequelizeResource } = require('admin-bro-sequelizejs') | |
const { BaseRecord } = require('admin-bro') | |
const { Op } = require('sequelize') | |
class Resource extends SequelizeResource { | |
titleField() { | |
return this.decorate().titleProperty().name() | |
} |
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
[ | |
{ | |
"state":"Alaska", | |
"latitude":61.3850, | |
"longitude":-152.2683 | |
}, | |
{ | |
"state":"Alabama", | |
"latitude":32.7990, | |
"longitude":-86.8073 |
OlderNewer