Skip to content

Instantly share code, notes, and snippets.

View AndyLPK247's full-sized avatar

Pandy Knight AndyLPK247

View GitHub Profile
@AndyLPK247
AndyLPK247 / GitHub_Java.gitignore
Created September 19, 2018 17:14
GitHub's gitignore Template for Java
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
@AndyLPK247
AndyLPK247 / example-nuget-quick-ref-nuspec.xml
Last active September 12, 2018 21:30
Example .nuspec File for NuGet Quick Reference
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
@AndyLPK247
AndyLPK247 / example-nuget-quick-ref-nuget-config.xml
Created September 12, 2018 21:23
Example NuGet.Config File for NuGet Quick Reference
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="my.company.com" value="https://my.company.com/httpAuth/app/nuget/v1/FeedService.svc/" />
</packageSources>
</configuration>
@AndyLPK247
AndyLPK247 / example-nuget-quick-ref-packages-config.xml
Last active September 12, 2018 20:58
Example packages.config File for NuGet Quick Reference
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FluentAssertions" version="5.4.1" targetFramework="net461" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" />
<package id="SpecFlow" version="2.4.0" targetFramework="net461" />
<package id="SpecRun.Runner" version="1.8.0" targetFramework="net461" />
<package id="SpecRun.SpecFlow" version="1.8.0" targetFramework="net461" />
<package id="SpecRun.SpecFlow.2-4-0" version="1.8.0" targetFramework="net461" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net461" />
</packages>
@AndyLPK247
AndyLPK247 / django_admin_i18n_custom_admin.css
Created April 21, 2018 14:27
Django Admin Translations Admin Template Extra CSS
.i18n_flag img {
width: 16px;
vertical-align: text-top;
}
@AndyLPK247
AndyLPK247 / django_admin_i18n_base_site.html
Created April 21, 2018 14:22
Django Admin Translations base_site.html Override
{% extends "admin/base_site.html" %}
{% load static %}
{% load i18n %}
<!-- custom filter module -->
{% load i18n_switcher %}
{% block extrahead %}
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}" />
@AndyLPK247
AndyLPK247 / django_favicon_settings.py
Created March 11, 2018 21:14
TEMPLATES Example for Django Admin Favicon
TEMPLATES = [
{
# ...
'DIRS': [os.path.join(BASE_DIR, 'templates')],
# ...
},
]
@AndyLPK247
AndyLPK247 / django_favicon_rest_fw_api.html
Created February 9, 2018 19:39
Django rest_framework/api.html template override for Django REST Framework browsable API favicon
<!-- The path and name for this file should be "templates/rest_framework/api.html". -->
<!-- It overrides the original browsable API template and will be picked up by all of its children. -->
<!-- This template override has been verified for Django 2.0. -->
{% extends "rest_framework/base.html" %}
{% load static %}
{% block style %}
{{ block.super }}
@AndyLPK247
AndyLPK247 / django_favicon_admin_base_site.html
Last active December 15, 2017 04:55
Django admin/base_site.html template override for admin site favicon
<!-- The path and name for this file should be "templates/admin/base_site.html". -->
<!-- It overrides the original admin template and will be picked up by all of its children. -->
<!-- This template override has been verified for Django 1.11 and 2.0. -->
{% extends "admin/base_site.html" %}
{% load static %}
{% block extrahead %}
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}" />
@AndyLPK247
AndyLPK247 / django_example_child.html
Created December 15, 2017 04:37
Django child template example that inherits the favicon
<!-- This is an example of a Django child template. -->
<!-- It extends: https://gist.github.com/d7f20ccd5620f64d761ec546fd9eb37a -->
<!-- The parent template sets the favicon. -->
{% extends "django_example_parent.html" %}
{% block title %}My Page{% endblock %}
{% block content %}
<div>