Skip to content

Instantly share code, notes, and snippets.

View flyingduck92's full-sized avatar
💭
Looking for a full-time job

Sekti flyingduck92

💭
Looking for a full-time job
View GitHub Profile
@flyingduck92
flyingduck92 / Month year only in django dateField
Created April 5, 2023 01:07 — forked from bee-keeper/Month year only in django dateField
Display only month, year in django admin and django list_display
#models.py
class SomeClass(models.Model):
date = models.DateField()
#forms.py
date = forms.DateField(widget=MonthYearWidget)
# Get widget here -> https://djangosnippets.org/snippets/1688/
#admin.py
class SomeClassAdmin(admin.ModelAdmin):
@flyingduck92
flyingduck92 / services.py
Created October 7, 2018 05:56
This is a test gist
from xml.etree import ElementTree
from collections import namedtuple
import requests
Episode = namedtuple('Episode', 'title link pubdate show_id')
episode_data = {}
  1. Install Package Resource Viewer.
  2. In package control window select ‘Package Resource Viewer: Open Resource’.
  3. Scroll down until you find the option: ‘Color Scheme — Default’ (or your theme with color scheme .tmTheme) and select it.
  4. Add the following
<!-- Operator Tweaks -->
  <dict>
    <key>name</key>
 Italic HTML attribute names
@flyingduck92
flyingduck92 / sublime-text-3-setup.md
Created May 25, 2018 08:59 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@flyingduck92
flyingduck92 / Arduino Song
Created March 11, 2018 17:37 — forked from eznj/star_wars.ino
Arduino Star Wars Song for Piezo
**/
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;
@flyingduck92
flyingduck92 / editor.css
Created January 28, 2018 04:39 — forked from Hendrixer/editor.css
VS code custom CSS for theme
.composite-title, .composite-title, .vs-dark .monaco-workbench>.activitybar>.content {
background-color: rgba(40, 44, 52, 1) !important;
}
.tabs-container, .tab, .tab.active, .title-actions, .tablist, .tabs-container, .tabs, .composite.title {
background-color: rgba(40, 44, 52, 1) !important;
}
.tab.active, .tab {
border-right: 0px !important;
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\bash]
[-HKEY_CLASSES_ROOT\Directory\shell\bash]
@flyingduck92
flyingduck92 / ContextCmder-Disable.reg
Created December 4, 2015 02:25 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7/8
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]