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
Classfile /tmp/example/com/example/repository/batch/ExampleItemWriter.class | |
Last modified Jan 28, 2015; size 10503 bytes | |
MD5 checksum 6ce62e4e964b10f9802927fe2ebfac85 | |
Compiled from "ExampleItemWriter.java" | |
public class com.example.repository.batch.ExampleItemWriter extends java.lang.Object implements org.springframework.batch.item.ItemWriter<com.example.metadata.xkbml.entity.XKbml> | |
Signature: #168 // Ljava/lang/Object;Lorg/springframework/batch/item/ItemWriter<Lcom/example/metadata/xkbml/entity/XKbml;>; | |
SourceFile: "ExampleItemWriter.java" | |
InnerClasses: | |
public static #193= #18 of #191; //Builder=class com/example/exceptionlogger/ExampleCriticalException$Builder of class com/example/exceptionlogger/ExampleCriticalException | |
public static #193= #62 of #253; //Builder=class com/example/exceptionlogger/ExampleFatalException$Builder of class com/example/exceptionlogger/ExampleFatalException |
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() { | |
var numLocks = 8; | |
var iterations = 1000; | |
function random(min, max) { | |
"use strict"; | |
return Math.round(Math.random() * (max - min) + min); | |
} | |
function buildLocksArray() { |
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
legacy = 'legacy-dirt.txt' | |
solr = 'solr-dirt.txt' | |
dirt = 'dirt.txt' | |
dirt_final = 'dirt-final.txt' | |
# Read both text files into arrays | |
legacy_file_array = File.readlines(legacy); | |
solr_file_array = File.readlines(solr); | |
# Create empty dirt.txt file and open in append mode. |
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
#!/usr/bin/ruby | |
require 'optparse' | |
require 'fileutils' | |
@APPLICATION | |
@ENVIRONMENT = "dev".freeze | |
@DROPSPOT = "/opt/j2ee/deploy".freeze | |
@WC = "/Users/foobar/espresso/nb-wc".freeze |
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 'png' | |
class RubyGraph | |
attr_accessor :x_precision | |
attr_accessor :y_precision | |
attr_accessor :x_pos_units | |
attr_accessor :y_pos_units | |
attr_accessor :x_neg_units | |
attr_accessor :y_neg_units |
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 "mysql" | |
require "json" | |
db = Mysql.new("localhost", "foobar", "ll33h5235kj", "images") | |
metadata = db.query("select * from metadata") | |
metadata.each_hash do |row| | |
full_album_path = "/path/to/images/#{row['album_dir']}" | |
if File.exists?(full_album_path) | |
meta = row |
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
7/21/15 2:12:24.901 PM WindowServer[143]: Received display connect changed for display 0x4280882 | |
7/21/15 2:12:24.903 PM WindowServer[143]: Found 27 modes for display 0x04280882 [27, 0] | |
7/21/15 2:12:24.904 PM WindowServer[143]: Received display connect changed for display 0x3f003f | |
7/21/15 2:12:24.904 PM WindowServer[143]: Found 1 modes for display 0x003f003f [1, 0] | |
7/21/15 2:12:24.904 PM WindowServer[143]: Received display connect changed for display 0x3f0040 | |
7/21/15 2:12:24.907 PM WindowServer[143]: Found 96 modes for display 0x003f0040 [78, 10] | |
7/21/15 2:12:24.907 PM WindowServer[143]: Display 0x003f0040 changed state to online | |
7/21/15 2:12:24.918 PM WindowServer[143]: Received display connect changed for display 0x3f0041 | |
7/21/15 2:12:24.918 PM WindowServer[143]: Found 1 modes for display 0x003f0041 [1, 0] | |
7/21/15 2:12:24.951 PM WindowServer[143]: MPServiceForDisplayDevice: Invalid device alias (0) |
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
# https://github.com/mcandre/svn-prompt | |
function setSvnPrompt { | |
svn info &>/dev/null | |
if [ $? -eq 0 ]; then | |
svn st | grep "[0-9a-zA-Z?\!]" > /dev/null 2>&1 | |
if [ $? -eq 1 ]; then | |
# nothing changed | |
echo -n "✓ " | |
fi |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<!-- foundation --> | |
<!-- | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/foundation/6.2.1/foundation.min.css"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Generate a color palette</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<!-- bootstrap --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" | |
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" | |
crossorigin="anonymous"> |
OlderNewer