Skip to content

Instantly share code, notes, and snippets.

View glennmartinez's full-sized avatar

glenn martin glennmartinez

  • Sydney, Australia
View GitHub Profile
@glennmartinez
glennmartinez / Podfile
Created January 1, 2025 08:28
Panchito's Flutterino Buildino
# Add this at the top of your Podfile
install! 'cocoapods', :deterministic_uuids => false
# Add this before your target definitions
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
# Keep these commented out since we're using the pre-compiled version
# pod 'Firebase/Core', :modular_headers => true
# pod 'Firebase/Firestore', :modular_headers => true
# pod 'FirebaseFirestore', :modular_headers => true
@glennmartinez
glennmartinez / main.dart
Created May 15, 2022 11:32
flutter sidebar navigation
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
initialRoute: '/',
onGenerateRoute: RouteGenerator.generateRoute,
@glennmartinez
glennmartinez / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
start]/before: requires Exec[deployment_wait]
debug: /Stage[main]/Apt/File[sources.list]/notify: subscribes to Exec[apt_update]
debug: /Stage[main]/Atl/Apt::Source[atlassiansdk]/Apt::Key[Add key: B07804338C015B73 from Apt::Source atlassiansdk]/Exec[7203de2cd81e96f9e6ac53b44b8edf65af5bd56c]/before: requires Anchor[apt::key B07804338C015B73 present]
debug: /Stage[main]/Atl/Package[apt-transport-https]/before: requires Apt::Source[atlassiansdk]
debug: /Stage[main]//Atl::Jdk[7]/File[ppa_create]/before: requires Exec[ppa_update]
debug: /Stage[main]//Atl::Confluence[5.4]/Service[confluence]/before: requires Notify[deployment_start]
debug: /Stage[main]/Atl/Apt::Source[atlassiansdk]/Apt::Key[Add key: B07804338C015B73 from Apt::Source atlassiansdk]/Anchor[apt::key B07804338C015B73 present]/before: requires Anchor[apt::key/Add key: B07804338C015B73 from Apt::Source atlassiansdk]
debug: /Stage[main]//Atl::Confluence[5.4]/File[init]/notify: subscribes to Service[confluence]
debug: /Stage[main]//Atl::Jdk[7]/Package[oracle
I'm getting the following error when posting a form: Couldn't find Team without an ID
I have the below post parameters
{"utf8"=>"✓",
"_method"=>"put",
"authenticity_token"=>"knq4dG1U/5NJxMD6KYxfOpKd3CuOBHRlp6xCwdpwCnQ=",
"match"=>{"name"=>"latest match",
"date(1i)"=>"2013",
"date(2i)"=>"5",
@glennmartinez
glennmartinez / travis.yml
Created November 12, 2012 12:03
travis ci config
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
rvm:
- 1.9.3
env:
- DB=sqlite
- DB=mysql
- DB=postgresql
@glennmartinez
glennmartinez / bigcode.java
Created November 5, 2012 06:05
Code Guru
package com.atlassian.confluence.sanity;
import com.atlassian.confluence.it.User;
import org.apache.commons.io.IOUtils;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class WebDriverConfiguration
<%= nested_form_for [@project, @quote], :html => {:class =>'form-inline'} do |f| %>
<div>
<%= f.hidden_field :project_id %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :status %>
<%= f.text_field :status %>
</div>
<p>
require 'spec_helper'
require 'utils'
class CalendarCreate
def createcalendar(pagetitle)
pagetitle = utilhelper.generate_random_name
@glennmartinez
glennmartinez / autocomplete.js
Created September 10, 2012 03:27
get element id and update
(function(a){var b=null;a.fn.railsAutocomplete=function(){return this.live("focus",function(){this.railsAutoCompleter||(this.railsAutoCompleter=new a.railsAutocomplete(this))})},a.railsAutocomplete=function(a){_e=a,this.init(_e)},a.railsAutocomplete.fn=a.railsAutocomplete.prototype={railsAutocomplete:"0.0.1"},a.railsAutocomplete.fn.extend=a.railsAutocomplete.extend=a.extend,a.railsAutocomplete.fn.extend({init:function(b){function c(a){return a.split(b.delimiter)}function d(a){return c(a).pop().replace(/^\s+/,"")}b.delimiter=a(b).attr("data-delimiter")||null,a(b).autocomplete({source:function(c,f){a.getJSON(a(b).attr("data-autocomplete"),{term:d(c.term)},function(){a(arguments[0]).each(function(c,d){var f={};f[d.id]=d,a(b).data(f)}),f.apply(null,arguments)})},search:function(){var a=d(this.value);if(a.length<2)return!1},focus:function(){return!1},select:function(d,f){var g=c(this.value);g.pop(),g.push(f.item.value);if(b.delimiter!=null)g.push(""),this.value=g.join(b.delimiter);else{this.value=g.join(""),a(this