Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Knight AndyLPK247

View GitHub Profile
@AndyLPK247
AndyLPK247 / GitHub_Java.gitignore
Created Sep 19, 2018
GitHub's gitignore Template for Java
View GitHub_Java.gitignore
# 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 Sep 12, 2018
Example .nuspec File for NuGet Quick Reference
View example-nuget-quick-ref-nuspec.xml
<?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 Sep 12, 2018
Example NuGet.Config File for NuGet Quick Reference
View example-nuget-quick-ref-nuget-config.xml
<?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 Sep 12, 2018
Example packages.config File for NuGet Quick Reference
View example-nuget-quick-ref-packages-config.xml
<?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 Apr 21, 2018
Django Admin Translations Admin Template Extra CSS
View django_admin_i18n_custom_admin.css
.i18n_flag img {
width: 16px;
vertical-align: text-top;
}
@AndyLPK247
AndyLPK247 / django_admin_i18n_base_site.html
Created Apr 21, 2018
Django Admin Translations base_site.html Override
View django_admin_i18n_base_site.html
{% 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 Mar 11, 2018
TEMPLATES Example for Django Admin Favicon
View django_favicon_settings.py
TEMPLATES = [
{
# ...
'DIRS': [os.path.join(BASE_DIR, 'templates')],
# ...
},
]
@AndyLPK247
AndyLPK247 / django_favicon_rest_fw_api.html
Created Feb 9, 2018
Django rest_framework/api.html template override for Django REST Framework browsable API favicon
View django_favicon_rest_fw_api.html
<!-- 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 Dec 15, 2017
Django admin/base_site.html template override for admin site favicon
View django_favicon_admin_base_site.html
<!-- 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 Dec 15, 2017
Django child template example that inherits the favicon
View django_example_child.html
<!-- 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>
You can’t perform that action at this time.