Skip to content

Instantly share code, notes, and snippets.

View pauldatta's full-sized avatar

Paul Datta pauldatta

View GitHub Profile
@pauldatta
pauldatta / MS_CSU_Offsite_Hackathon_2024_form.md
Created April 17, 2024 10:57
CSU Offsite 2024 - Hackathon problem statement filter

Extract CSU 2024 Hackathon Problem Statements from Form

  1. Open the form
  2. Open the browser console
  3. Execute code
  4. Get copilot to convert this to a numbered list
let dropdownContents = [];
@pauldatta
pauldatta / eclipse_android_formatter
Created March 25, 2013 11:45
Eclipse Formatter Settings
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="12">
<profile kind="CodeFormatterProfile" name="Eclipse Paul" version="12">
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/>
@pauldatta
pauldatta / eclipse_andriod_code_cleanup.xml
Created January 2, 2013 06:32
Eclipse Code Action File for Android Code Clean Up
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="2">
<profile kind="CleanUpProfile" name="eclipse_cleanup" version="2">
<setting id="cleanup.remove_unused_private_fields" value="true"/>
<setting id="cleanup.always_use_parentheses_in_expressions" value="false"/>
<setting id="cleanup.never_use_blocks" value="false"/>
<setting id="cleanup.remove_unused_private_methods" value="true"/>
<setting id="cleanup.add_missing_deprecated_annotations" value="true"/>
<setting id="cleanup.convert_to_enhanced_for_loop" value="false"/>
<setting id="cleanup.remove_unnecessary_nls_tags" value="true"/>
@pauldatta
pauldatta / rabl_grape.rb
Created December 31, 2012 13:00
Using Rabl with Grape Trying to get view helpers to work within Rabl templates that are called from Grape. @pauldatta
# https://github.com/drapergem/draper/wiki/Using-Rails-Path-Helpers-in-Draper-Decorators-with-Grape
# https://github.com/nesquena/rabl/wiki/Using-Rabl-with-Grape
module Grape
class Endpoint
include Rails.application.routes.url_helpers
default_url_options[:host] = ::Rails.application.routes.default_url_options[:host]
end
end