Djaneiro is a sublime package that gives a bunch of snippets (tab completions) for Django including templating.
The most useful snippets I use are for templating:
- var:
{{ }}
Djaneiro is a sublime package that gives a bunch of snippets (tab completions) for Django including templating.
The most useful snippets I use are for templating:
{{ }}
# Unicoin Miner | |
# By: Eric Eastwood (ericeastwood.com) | |
# | |
# ** Press the `P` key or `Space` to stop the program ** | |
# | |
# Description: | |
# Looks for rocks and clicks them | |
# Unicoins were a April Fools Joke on all StackExchange sites | |
# Just wanted to try out some basic vision and input emulation | |
# |
using UnityEngine; | |
using System.Collections; | |
[RequireComponent (typeof(CharacterController))] | |
public class CharacterDriver : MonoBehaviour { | |
public class CharacterState | |
{ | |
public Vector3 position = new Vector3(); | |
using UnityEngine; | |
using System.Collections; | |
// Author: Eric Eastwood (ericeastwood.com) | |
// | |
// Description: | |
// Written for this gd.se question: http://gamedev.stackexchange.com/a/75748/16587 | |
// Simulates/Emulates pendulum motion in code | |
// Works in any 3D direction and with any force/direciton of gravity | |
// |
// Usage: | |
// $('.box').parentToAnimate($('.new-parent'), 200); | |
// $('.box').parentToAnimate($('.new-parent'), 'slow'); | |
// $('.box').parentToAnimate('.new-parent', 'slow'); | |
jQuery.fn.extend({ | |
// Modified and Updated by MLM | |
// Origin: Davy8 (http://stackoverflow.com/a/5212193/796832) | |
parentToAnimate: function(newParent, duration) { | |
duration = duration || 'slow'; |
/* | |
* Available functions: | |
* renderer.replace(...options...) | |
* renderer.append(...options...) | |
* renderer.prepend(...options...) | |
* renderer.before(...options...) | |
* renderer.after(...options...) | |
* | |
* Options: | |
* module: The RequireJS module to render. |
{% extends "suit:admin/change_form.html" %} | |
{% block extrajs %} | |
{{ block.super }} | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
jQuery.fn.filterFind = function(selector) { | |
return this.find('*') // Take the current selection and find all descendants, |
/** vim: et:ts=4:sw=4:sts=4 | |
* @license RequireJS 2.1.15 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. | |
* Available via the MIT or new BSD license. | |
* see: http://github.com/jrburke/requirejs for details | |
*/ | |
//Not using strict: uneven strict support in browsers, #392, and causes | |
//problems with requirejs.exec()/transpiler plugins that may not be strict. | |
/*jslint regexp: true, nomen: true, sloppy: true */ | |
/*global window, navigator, document, importScripts, setTimeout, opera */ |
// Demo: http://jsfiddle.net/MadLittleMods/g3g0g1L4/ | |
// GitHub Gist: https://gist.github.com/MadLittleMods/7b9ec36879fd24938ad2 | |
// Code Review: http://codereview.stackexchange.com/q/69651/40165 | |
// These are used to determine the map/table format | |
var const_objectKeyPropertyName = '_short'; | |
var const_objectValuePropertyName = '_object'; | |
var const_arrayKeyPropertyName = '_array_item'; | |
function convertKeys(object, map, reverseMap) |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Xml; | |
using System; | |
using System.Reflection; | |
// This Unity Editor window was created for this GD.SE question: http://gamedev.stackexchange.com/a/91936/16587 | |
// The XML->Font is from the question asker, Almo |