Skip to content

Instantly share code, notes, and snippets.

View maudmcok's full-sized avatar

Maud maudmcok

  • D Mcok Corporation
  • Rennes, France
View GitHub Profile
@agnamc9
agnamc9 / AndroidManifest.xml
Last active May 9, 2016 23:25
Retrofit POST example for Android
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.retrofit">
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
@rnkoaa
rnkoaa / app.js
Created January 9, 2014 13:14
A simple angularjs with angular-ui modal form which includes validation on the client side. Thanks http://scotch.io/tutorials/javascript/angularjs-form-validation
var app = angular.module("modalFormApp", ['ui.bootstrap']);
app.controller("modalAccountFormController", ['$scope', '$modal', '$log',
function ($scope, $modal, $log) {
$scope.showForm = function () {
$scope.message = "Show Form Button Clicked";
console.log($scope.message);
var modalInstance = $modal.open({
@nauris-m
nauris-m / add.js
Created June 11, 2013 09:57
Google Maps: add location (ajax call to php, which logs coordinates in a file), load location (read file and show coordinates on a map)
var map = null;
var marker = null;
var infowindow = new google.maps.InfoWindow({size: new google.maps.Size(150, 50)});
function createMarker(latlng, name, html) {
var contentString = html;
var marker = new google.maps.Marker(
{
position: latlng,
map: map,