This file contains hidden or 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
grammar logstash_conf; | |
filler: (comment | WS)*; | |
comment: (WS? '#' .*? '\r'? '\n')+; | |
config: filler plugin_section (filler plugin_section)* ; | |
plugin_section: plugin_type filler '{' | |
filler (branch_or_plugin filler)* | |
'}'; | |
plugin_type: ('input' | 'filter' | 'output'); | |
branch_or_plugin: branch | plugin; | |
branch: r_if (filler else_if)* (filler r_else)?; |
This file contains hidden or 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
package com.joshcough.minecraft.examples | |
import java.util.logging.Logger | |
import org.bukkit.entity.Player | |
import org.bukkit.Location | |
import org.bukkit.event.block.BlockBreakEvent | |
import org.bukkit.event.player.PlayerMoveEvent | |
import com.joshcough.minecraft._ | |
import org.bukkit.block.Block |
This file contains hidden or 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 pennTreeParse(penn_string) { | |
function eatWhiteSpace(s) { | |
while (s.length && /\s/.test(s[0])) s = s.slice(1); | |
return s; | |
} | |
function isCharacter(c) { | |
return /^[a-z0-9ÀÈÌÒÙàèìòùÁÉÍÓÚÝáéíóúýÂÊÎÔÛâêîôûÃÑÕãñõÄËÏÖÜäëïöüçÇߨøÅ寿ÞþÐð]+/i.test( c ); | |
} |
This file contains hidden or 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/env ruby | |
require 'time' | |
LINE_REGEXP = /(\d{4})-(\d{2})-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})\.(\d{6})\+(\d{2})\:(\d{2})\s(.+?)\[(.+?)\.(.+?)\]\:(.+)/ | |
MAX_MEMORY = ARGV[0].to_f | |
APP = ARGV[1].to_s | |
printf "Max Memory is #{MAX_MEMORY}\n" |
This file contains hidden or 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
package com.chefsfeed.spark | |
// Spark | |
import org.apache.spark.{ | |
SparkContext, | |
SparkConf | |
} | |
import SparkContext._ |
This file contains hidden or 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
regex = /([0-9A-Z\_]+)\:\s*(.*)/ | |
ARGF.each do |line| | |
match_data = regex.match line | |
if match_data | |
File.write("./env/" + match_data[1], match_data[2], mode: "w") | |
end | |
end |
This file contains hidden or 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Description here.", | |
"Parameters": { | |
"SubnetAvailabilityZone1": { | |
"Description": "Availability Zone for Subnet 1", | |
"Type": "String", | |
"Default": "us-west-2a" | |
}, | |
"SubnetAvailabilityZone2": { |