This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="bubble"> | |
<div class="bubble-arrow"> | |
<div class="bubble-arrow-before"></div> | |
<div class="bubble-arrow-after"></div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain) throws IOException, ServletException { | |
HttpServletRequest request = (HttpServletRequest) servletRequest; | |
HttpServletResponse response = (HttpServletResponse) servletResponse; | |
OAuthSecurityContextImpl context = new OAuthSecurityContextImpl(); | |
context.setDetails(request); | |
Map<String, OAuthConsumerToken> rememberedTokens = getRememberMeServices().loadRememberedTokens(request, response); | |
Map<String, OAuthConsumerToken> accessTokens = new TreeMap<String, OAuthConsumerToken>(); | |
Map<String, OAuthConsumerToken> requestTokens = new TreeMap<String, OAuthConsumerToken>(); | |
if (rememberedTokens != null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div#content div[id*="update-"] { | |
max-height: 120px; | |
overflow: hidden; | |
} | |
div#content div[id*="update-"] div > img { | |
display: none !important; | |
} | |
div#content div[id*="update-"]:hover { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.scribe.builder.api.DefaultApi10a; | |
import org.scribe.model.OAuthConfig; | |
import org.scribe.model.Token; | |
import org.scribe.oauth.OAuthService; | |
public class TwoLeggedApi extends DefaultApi10a { | |
@Override | |
public String getAccessTokenEndpoint() { | |
return ""; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#some_checkbox").click(function() { | |
var checkbox = $(this) | |
checkbox.attr("disabled", true) | |
$.ajax($("form").attr("action"), { | |
type: "POST", | |
data: $("form").serialize(), | |
success: function() { | |
alert("User updated") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
var chrsz = 8; | |
var hexcase = 0; | |
function hex2bin(hex_str) | |
{ | |
var char_str = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function PBKDF2(password, salt, num_iterations, num_bytes) { | |
var m_bpassword = str2binb(password); | |
var m_salt = salt; | |
var m_total_iterations = num_iterations; | |
var m_iterations_in_chunk = 100; | |
var m_iterations_done = 0; | |
var m_key_length = num_bytes; | |
var m_hash_length = 20; | |
var m_total_blocks = Math.ceil(m_key_length / m_hash_length); | |
var m_current_block = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
no such file to load -- nokogiri/nokogiri (MissingSourceFile) | |
/Users/dholst/Work/geo/cms/vendor/bundler/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require' | |
/Users/dholst/Work/geo/cms/vendor/bundler/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require' | |
/Users/dholst/Work/geo/cms/vendor/bundler/gems/nokogiri-1.4.1-java/lib/nokogiri.rb:13 | |
/Users/dholst/Work/geo/cms/vendor/bundler/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require' | |
/Users/dholst/Work/geo/cms/vendor/bundler/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require' | |
/Users/dholst/Work/geo/cms/vendor/bundler/gems/cucumber-rails-0.2.4/lib/cucumber/web/tableish.rb:1 | |
/Users/dholst/Work/geo/cms/vendor/bundler/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require' | |
/Users/dholst/Work/geo/cms/vendor/bundler/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require' | |
/Users/dholst/Work/geo/cms/features/support/env.rb:14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: Echofon [583] | |
Path: /Applications/Echofon.app/Contents/MacOS/Echofon | |
Identifier: com.echofon.Echofon | |
Version: 0.98.5 (0.98.5) | |
Code Type: X86 (Native) | |
Parent Process: launchd [196] | |
Date/Time: 2010-02-09 07:00:45.830 -0600 | |
OS Version: Mac OS X 10.6.2 (10C540) | |
Report Version: 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'nokogiri' | |
html = <<EOS | |
<html> | |
<head> | |
<title>test</title> | |
</head> | |
<body> | |
<table id="some_id"> |