In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
import com.fasterxml.jackson.annotation.JsonSubTypes; | |
import com.fasterxml.jackson.annotation.JsonTypeInfo; | |
import com.fasterxml.jackson.databind.PropertyNamingStrategy; | |
import com.fasterxml.jackson.databind.annotation.JsonNaming; | |
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") | |
@JsonSubTypes({ | |
@JsonSubTypes.Type(value=AudioAttachment.class, name="audio"), | |
@JsonSubTypes.Type(value=LinkAttachment.class, name="link") |
( function( $, plugin ) { | |
"use strict"; | |
// Working with promises to bubble event later than core. | |
$.when( someObjectWithEvents ).done( function() { | |
console.log( 'AJAX request done.' ); | |
} ) | |
.then( function() { | |
setTimeout( function() { | |
console.log( 'AJAX requests resolved.' ); |
figlet "I've got something to say" | |
figlet -f thick "Make Tech ASCIIer" | |
date | figlet -f basic |
#!/usr/bin/env bash | |
# gsettings list-recursively org.gnome.system.proxy | |
# Change de ip address and port number accordingly. | |
function myProxyOn() { | |
gsettings set org.gnome.system.proxy mode 'manual' # ' manual / nome / automatic ' | |
gsettings set org.gnome.system.proxy.http host '10.0.0.1' | |
gsettings set org.gnome.system.proxy.http port 8080 | |
gsettings set org.gnome.system.proxy.https host '10.0.0.1' |
public static void prettyOut(byte[] msg) { | |
for (int j = 1; j < msg.length+1; j++) { | |
if (j % 8 == 1 || j == 0) { | |
if( j != 0){ | |
System.out.println(); | |
} | |
System.out.format("0%d\t|\t", j / 8); | |
} | |
System.out.format("%02X", msg[j-1]); | |
if (j % 4 == 0) { |
package test.weldtest; | |
import org.jboss.weld.environment.se.Weld; | |
import org.jboss.weld.environment.se.WeldContainer; | |
public class App { | |
public static void main(String[] args) { | |
WeldContainer weld = new Weld().initialize(); | |
weld.instance().select(HelloWorldWriter.class).get().sayIt(); | |
} |
banner | |
### ### | |
# # # # # ###### ## #### #### # # ### | |
# # # # # # # # # # # # # ### | |
# # # #### ##### # # #### # # # # | |
# # # # # # ###### # # # # | |
# # # # # # # # # # # # # # ### | |
### ###### # # # ###### # # #### #### # # ### | |