Skip to content

Instantly share code, notes, and snippets.

View lolobosse's full-sized avatar

Lolobosse (old JN) lolobosse

View GitHub Profile
@PriteshJain
PriteshJain / trex.html
Created March 30, 2015 11:21
T-Rex game from Chrome offline mode. Download and open in Chrome browser (Runs only on Chrome)
<html i18n-values="dir:textdirection;lang:language" dir="ltr" lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, user-scalable=no">
<title i18n-content="title">T-Rex Game</title>
<style>/* Copyright 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. */
a {
@melanke
melanke / MLRoundedImageView.java
Created October 25, 2013 17:19
Android Rounded Image
public class MLRoundedImageView extends ImageView {
public MLRoundedImageView(Context context) {
super(context);
}
public MLRoundedImageView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@niraj-shah
niraj-shah / parse_acl.js
Created August 2, 2013 17:44
Two examples of setting ACL controls using Parse JS SDK
// ACL to restrict write to user, and public read access
var custom_acl = new Parse.ACL();
// give write access to the current user
custom_acl.setWriteAccess( Parse.User.current(), true);
// give public read access
custom_acl.setPublicReadAccess(true);
GameObject.setACL(custom_acl);
// ACL to restrict write to user, and no public access
var custom_acl = new Parse.ACL();
@jamiechapman
jamiechapman / ParseProxyObject.java
Last active March 14, 2019 07:37
A Parse.com Serializable ParseObject Proxy
// By Jamie Chapman, @chappers57
// License: open, do as you wish, just don't blame me if stuff breaks ;-)
public class ParseProxyObject implements Serializable {
private static final long serialVersionUID = 1L;
private HashMap<String, Object> values = new HashMap<String, Object>();
public HashMap<String, Object> getValues() {
return values;
@anirudhjoshi
anirudhjoshi / htmlcharacterconvertor.py
Created December 16, 2009 03:50
htmlcharacterconvertor.py
#!/usr/bin/python
# HTML Character Convertor
# Replaces HTML entities in a given string - with their correct character.
def extractKeyValueToDictionary(fileName):
allLines = open(fileName, 'r').readlines()
dictionary = {}
for line in allLines:
key,value=line.split(':')