Skip to content

Instantly share code, notes, and snippets.

@adamgit
adamgit / .gitignore
Last active November 11, 2024 06:14
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
@maedhr
maedhr / gist:8823168
Created February 5, 2014 13:04
React GoogleMap Example
<html>
<head>
<script src="https://maps.googleapis.com/maps/api/js?sensor=false" ></script>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://fb.me/react-0.8.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.8.0.js"></script>
<script type='text/jsx'>
/** @jsx React.DOM */
ExampleGoogleMap = React.createClass({
getDefaultProps: function () {
@shedd
shedd / README.md
Last active August 29, 2015 14:02 — forked from LinusU/README.md

Usage

Install cordova into node_modules

npm install cordova

Add icons_and_splash.js

@mbmc
mbmc / Application.java
Last active November 25, 2019 14:36
Delete Parse duplicated Installation object for Android app
// Android app
private void setupParse(Context context) {
Parse.initialize(this, <PARSE_APP_ID>, <PARSE_CLIENT_KEY>);
ParseInstallation.getCurrentInstallation().put("uniqueId", getWifiMacAddress(context));
ParseInstallation.getCurrentInstallation().saveInBackground();
}
private String getWifiMacAddress(Context context) {
WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
if (wifiManager != null && wifiManager.getConnectionInfo() != null) {
@RickKimball
RickKimball / readme.md
Last active November 26, 2018 09:34
ws281x driver using DMA and MSP430F5529 (tested on ws2811 and ws2812b aka neo pixels)

This code is used to drive a ws281x strip using SPI driven by DMA on an msp430f5529.