Skip to content

Instantly share code, notes, and snippets.

@paul-at
paul-at / es6.rb
Created October 24, 2018 10:51
Check for Uglifier-incompatible ES6 files
require 'uglifier'
JS_PATH = ".../app/assets/javascripts/**/*.js";
Dir[JS_PATH].each do |file_name|
puts "\n#{file_name}"
puts Uglifier.compile(File.read(file_name))
end
@paul-at
paul-at / test.c
Created October 21, 2016 09:46
IoT Quiz Test Case
#include <stdio.h>
void main() {
int value=100;
if(value > 100)
{
printf("1");
}
else if(value>100)
{
@paul-at
paul-at / logstash RPM spec
Created February 2, 2012 14:57 — forked from rtd/logstash.sh
logstash monolithic init script and spec file for CentOS / RedHat
Name: logstash
Version: 1.1.0
Release: 1%{?dist}
Summary: logstash is a tool for managing events and logs
Group: System/Logging
License: ASL 2.0
URL: http://logstash.net/
Source0: http://semicomplete.com/files/logstash/logstash-%{version}-monolithic.jar
Source1: logstash