Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger
// Create a WriterInterceptor, | |
// see: https://jersey.java.net/documentation/latest/user-guide.html#d0e9728 | |
import ... | |
@Provider | |
public class GZIPWriterInterceptor implements WriterInterceptor { | |
private final Logger logger = LoggerFactory.getLogger(getClass()); | |
private HttpHeaders httpHeaders; |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>group</groupId> | |
<artifactId>dummy</artifactId> | |
<name>Dummy Project</name> | |
<version>1.0.12</version> | |
<packaging>pom</packaging> | |
<scm> | |
<connection>scm:git:https://......</connection> | |
<tag>HEAD</tag> |
#! /bin/sh | |
# ================================================================== | |
# ______ __ _____ | |
# /_ __/___ ____ ___ _________ _/ /_ /__ / | |
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / / | |
# / / / /_/ / / / / / / /__/ /_/ / /_ / / | |
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/ | |
# Multi-instance Apache Tomcat installation with a focus | |
# on best-practices as defined by Apache, SpringSource, and MuleSoft |
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
Simplest intro to git by github and codeschool - Try Git
[Intro to github]
@SpringBootApplication | |
public class Application { | |
public static void main(String[] args) { | |
SpringApplication.run(Application.class, args); | |
} | |
@Autowired | |
void setEnvironment(Environment e) { | |
System.out.println(e.getProperty("configuration.projectName")); |
require 'nokogiri' | |
ugly = Nokogiri::HTML ARGF | |
tidy = Nokogiri::XSLT File.open('tidy.xsl') | |
nice = tidy.transform(ugly).to_html | |
puts nice |
var brain = require('brain.js') | |
var fs = require('fs') | |
// configuration to be used in the brain | |
const config = { | |
binaryThresh: 0.5, // arbitary value | |
hiddenLayers: [3], // the size of the hidden layers in the network | |
activation: 'sigmoid' // activation function | |
} |
package org.rantue.server; | |
import io.netty.handler.codec.http.HttpResponseStatus; | |
import io.vertx.core.AbstractVerticle; | |
import io.vertx.core.AsyncResult; | |
import io.vertx.core.Future; | |
import io.vertx.core.Handler; | |
import io.vertx.core.buffer.Buffer; | |
import io.vertx.core.eventbus.Message; | |
import io.vertx.core.json.JsonObject; |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |