Skip to content

Instantly share code, notes, and snippets.

We couldn’t find that file to show.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="The premier Jewish dating site. Join and meet cool Jews today. Completely free!" />
<title>Free Jewish Dating - Jew for Me</title>
<script src="http://localhost:4000//javascripts/jquery.js?1228273793" type="text/javascript"></script>
<script src="http://localhost:4000//javascripts/jquery-ui.js?1228273793" type="text/javascript"></script>
@avishai
avishai / application.html.erb
Created April 2, 2009 14:57
why is this taking so long to render?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="The premier Jewish dating site. Join and meet cool Jews today. Completely free!" />
<title><%= @page_title %></title>
<%= javascript_include_tag :defaults, "/facebox/facebox.js", :cache => true %>
<%= stylesheet_link_tag "960", "application", "/facebox/facebox.css", :cache => true %>
[d-fenders]$ rake app:adwords
(in /home/avishaiw/dev/adwords)
"soap_message = <?xml version=\"1.0\" encoding=\"utf-8\" ?> <env:Envelope\n xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\"\n> <env:Header>\n <email env:mustUnderstand=\"0\">avishai@synapsio.com</email>\n <password env:mustUnderstand=\"0\">$$$$$</password>\n <useragent env:mustUnderstand=\"0\">Sem4r Adwords Ruby Client Library (http://github.com/sem4r/sem4r)</useragent>\n <developerToken env:mustUnderstand=\"0\">avishai@synapsio.com++USD</developerToken>\n</env:Header><env:Body><validateReportJob xmlns=\"https://adwords.google.com/api/adwords/v13\"><job xsi:type=\"DefinedReportJob\"><name>Keyword report-2011-02-06T01:23:43-08:00</name><selectedReportType>Keyword</selectedReportType><startDay>2011-02-03</startDay><endDay>2011-02-06</endDay><aggregationTypes>Daily</aggregation
@avishai
avishai / application.rb
Created August 2, 2011 08:07
Milamix Application
# Milamix app - Translate phrases into multiple languages at once
# http://milamix.heroku.com
# Copyright (c) 2011 Avishai Weiss (avishai dot weiss at gmail dot com)
require "rubygems"
require "sinatra"
require "open-uri"
require "json"
API_KEY = "GOOGLE API KEY GOES HERE"
@avishai
avishai / gist:2874375
Created June 5, 2012 10:53
Flip CSS files using the R2 utility
#!/usr/bin/ruby
files = Dir.glob("app/assets/stylesheets/*.css")
for file in files do
next if file.match(".rtl.css")
output_file=file.gsub(".css", ".rtl.css")
puts "Flipping #{file} => #{output_file}"
`r2 #{file} #{output_file}`
end
@avishai
avishai / product-edit.php
Created February 10, 2017 14:30
Hide Product Type Control - WC Vendors Pro
<!-- Product Type: Simple or Variable -->
<div class="hide_if_simple hide_if_variable hide_if_grouped">
<?php WCVendors_Pro_Product_Form::product_type( $object_id ); ?>
</div>