Skip to content

Instantly share code, notes, and snippets.

Frank Licea flsafe

  • Austin
Block or report user

Report or block flsafe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:393116
#-----------------------In my form-----------------
<div id="hints">
<%= render :partial => 'hint', :collection=>@exercise.hints %>
</div>
<%= add_hint_link %>
#----------------------The partial for the hint fields---------------------------
<div class='hint'>
View output.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Untitled</title>
<link href="/stylesheets/application.css?1271719139" media="screen" rel="stylesheet" type="text/css" />
<script src="/javascripts/prototype.js?1271182621" type="text/javascript"></script>
<script src="/javascripts/effects.js?1271182621" type="text/javascript"></script>
<script src="/javascripts/dragdrop.js?1271182621" type="text/javascript"></script>
<script src="/javascripts/controls.js?1271182621" type="text/javascript"></script>
View wc10.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>World Cup 2010 Countdown Timer</title>
</head>
<body>
<div id="worldcup_countdown_time"> </div>
<script src="wc10.js" type="text/javascript" charset="utf-8"></script>
@flsafe
flsafe / gist:752446
Created Dec 23, 2010
Output of `bundle list`
View gist:752446
Gems included by the bundle:
* ZenTest (4.4.2)
* actionmailer (2.3.5)
* actionpack (2.3.5)
* activerecord (2.3.5)
* activeresource (2.3.5)
* activesupport (2.3.5)
* acts-as-taggable-on (2.0.6)
* authlogic (2.1.6)
* builder (3.0.0)
View gist:1017397
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <ctype.h>
#define N_UNIT_TESTS 1
#define MAX_YAML_LEN 1024
#define INDENT 4
View gist:1313765
COMMON_WORDS = []
desc 'Move buisnesses to one sub category to another'
task :move_businesses, [:from, :to, :heuristic_file] => :environment do |t, args|
puts args
if valid_arguments?(args)
read_heuristic_file(args[:heuristic_file])
move_businesses(args[:from], args[:to])
else
print_usage
View gist:1313777
Lawn 416
Landscape 341
Landscaping 286
Svc 224
Care 178
Maintenance 60
Gardening 53
Tree 52
Service 45
Garden 37
View gist:1317395
'Edward Tootle Lawn Care' 'Entertainment/Movie Distribution' '78202' ["Entertainment"]/["Movie Distribution"]
'Propertymax' 'Entertainment/Movie Distribution' '78202' ["Entertainment"]/["Movie Distribution"]
'NDC Landscape Contracting' 'Entertainment/Movie Distribution' '78204' ["Entertainment"]/["Movie Distribution"]
'Vincent Landscapes' 'House and Home/Movie Distribution' '78204' ["Entertainment"]/["Movie Distribution"]
'Marty Murie's Nativescapes' 'House and Home/Movie Distribution' '78204' ["Entertainment"]/["Movie Distribution"]
'Austin Lawn & Garden' 'House and Home/Movie Distribution' '78206' ["Entertainment"]/["Movie Distribution"]
'Wee Care Landscapes Inc' 'House and Home/Movie Distribution' '78204' ["Entertainment"]/["Movie Distribution"]
'Skippers Stanley S&J Lawn Car' 'Entertainment/Movie Distribution' '78202' ["Entertainment"]/["Movie Distribution"]
'Jacques Landscaping' 'Entertainment/Movie Distribution' '78204' ["Entertainment"]/["Movie Distribution"]
'Woodland Nursery Ctr' 'Entertainment/Movie
View gist:1317532
LAWN_CARE_SIC = "0782"
def get_sic_code(sic)
SicCode.first(sic_code:sic)
end
def fix_lawn_care_sic
sic_code = get_sic_code(LAWN_CARE_SIC)
sic_code.category = GCS::Category.first_by_title('lawn-and-garden')
sic_code.sub_category = GCS::SubCategory.first_by_title('lawn-care')
View gist:1345897
first = Date.new(year, month, 1)
last = Date.new(year, month, -1)
You can’t perform that action at this time.