This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SqueakyModel.TwitterAccount: (models.E004) 'id' can only be used as a field name if the field also sets 'primary_key=True'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using System.Collections; | |
using System.Collections.Generic; | |
using System; | |
public class WebImageDisplay : MonoBehaviour | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class KensView(MessageView): | |
def get_context_data(self, **kwargs): | |
kens_var = request.POST.get("kens_thing", "") | |
messages.info(request, 'kens message here') | |
# Call the base implementation first to get a context | |
context = super(MessageView, self).get_context_data(**kwargs) | |
# Add in a QuerySet of all the books | |
context['message'] = self.message | |
return context |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"initial_id":"alpha", | |
"spheres":[ | |
{ | |
"id":"alpha", | |
"title":"dining", | |
"projection_image_url":"https://s3.amazonaws.com/projectastraltours/highgarden/dining_4096.jpg", | |
"width":4096, | |
"height":2048, | |
"doors":[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Custom/texture_inside" { | |
Properties { | |
_Color("Main Color", Color) = (1,1,1,1) | |
_MainTex ("Base (RGB) Trans(A)", 2D)="white"{} | |
} | |
SubShader { | |
Tags { "RenderType" = "Opaque" } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EmbeddedMixin(object): | |
def get_embedded(self, hierarchy, key, value, depth=0, indexes=False): | |
"""get a list containing the ordered indexes of embedded documents. | |
A recursive depth first search replacing the nested for loops normally required | |
to iterate through nested objects contained within lists to find a single object | |
that has a specific value for a specific key. | |
Keyword Arguments: | |
hierarchy -- a list of keys needed to access the list containingthe next level of objects to search |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Indiepen", | |
"version": "0.0.3", | |
"main": "path/to/main.css", | |
"ignore": [ | |
".jshintrc", | |
"**/*.txt", | |
"**/.*", | |
"node_modules", | |
"bower_components", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PostListView(SiteRootView, TemplateView): | |
template_name = 'posts.html' | |
def get_context_data(self, **kwargs): | |
context = super(PostListView, self).get_context_data(**kwargs) | |
context['posts'] = cm.Post.objects.all().order_by('-updated_at') | |
return context |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
showScene('Tester'); | |
mediaVol(15); | |
say("Good morning Eric, welcome to "+global('DAYW')+". Let me check the weather."); | |
//getLocation( 'net' ); | |
//var coords = global('LOCN').split(","); | |
var http = new XMLHttpRequest(); | |
//flashLong('http://api.openweathermap.org/data/2.5/find?lat='+coords[0]+'&lon='+coords[1]+'&units=imperial&mode=json'); | |
//http.open("GET",'http://api.openweathermap.org/data/2.5/find?lat='+coords[0]+'&lon='+coords[1]+'&units=imperial&mode=json&type=like',false); | |
http.open("GET",'http://api.openweathermap.org/data/2.5/find?q=brooklyn&units=imperial&mode=json&type=like',false); | |
http.send(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_embedded(self, hierarchy, key, value, indexes=False): | |
"""get a list containing the ordered indexes of embedded documents. | |
A recursive depth first search replacing the nested for loops normally required | |
to iterate through nested objects contained within lists to find a single object | |
that has a specific value for a specific key. | |
Keyword Arguments: | |
hierarchy -- a list of keys needed to access the list containingthe next level of objects to search | |
key -- the string name of the member to match value too |
NewerOlder