Skip to content

Instantly share code, notes, and snippets.

View sunshineg's full-sized avatar
☀️
Focusing on SiFou New Project

Sunny sunshineg

☀️
Focusing on SiFou New Project
View GitHub Profile
/*theme widget function.php*/
function jobair_widgets(){
register_sidebar(array(
'name' => __( 'Right Sidebar', 'theme-slug' ),
'id' => 'right_sidebar',
'description' => __( 'Right Sidebar.', 'theme-slug' ),
'before_widget' => '<div class="right_sidebar border">',
'after_widget' => '</div>',
'before_title' => '<h2>',
@sunshineg
sunshineg / reverseadmin.py
Created August 24, 2015 03:35 — forked from wolever/reverseadmin.py
Forked from https://gist.github.com/mzbyszewska/8b6afc312b024832aa85 , updated to work with Django 1.8
'''
adminreverse from here http://djangosnippets.org/snippets/2032/
changed for working with ForeignKeys
'''
'''
reverseadmin
============
Module that makes django admin handle OneToOneFields in a better way.
A common use case for one-to-one relationships is to "embed" a model
inside another one. For example, a Person may have multiple foreign
@sunshineg
sunshineg / code.md
Last active December 28, 2015 02:39 — forked from weakish/code.md
The Six Most Common Species Of Code =================================== http://www.willa.me/2013/11/the-six-most-common-species-of-code.html code Written By A CS 101 Student --------------------------------