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
// TCPClientGUI.java | |
// TCP Client that reads and displays information sent from a Server. GUI Version | |
import java.io.EOFException; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import java.net.InetAddress; | |
import java.net.Socket; | |
import java.awt.BorderLayout; | |
import java.awt.event.ActionEvent; |
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
// TCPClientTest.java | |
// Test the TCPClientGUI class. GUI Version | |
import javax.swing.JFrame; | |
public class TCPClientTest | |
{ | |
public static void main( String args[] ) | |
{ | |
TCPClientGUI application; // declare client application |
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
// TCPServerTest.java | |
// Test the TCPServerGUI application. GUI Version | |
import javax.swing.JFrame; | |
public class TCPServerTest | |
{ | |
public static void main( String args[] ) | |
{ | |
TCPServerGUI application = new TCPServerGUI(); // create server | |
application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); |
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
//TCPServerGUI.java | |
// Set up a TCP Server that will receive a connection from a client, send | |
// a string to the client, and close the connection. GUI Version | |
import java.io.BufferedReader; | |
import java.io.EOFException; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; |
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
*.apdisk | |
*.ap_ | |
*.sass-cache | |
*.scssc | |
*.log | |
*.DS_Store | |
*.xcuserstate | |
*.bak | |
.TemporaryItems | |
Thumbs.db |
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
@-webkit-keyframes fadeIn { | |
from { | |
background-color: rgba(0,0,0,0); | |
} | |
to { | |
background-color: rgba(0,0,0,0.35); | |
} | |
} | |
@keyframes fadeIn { | |
from { |
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
clear | |
read -p "Migrate project to version: " version | |
cd ~/Developer/Shop | |
rm -Rf platforms/android/CordovaLib/* | |
cp -a ~/Developer/crosswalk-cordova-$version-arm/framework/* \ | |
platforms/android/CordovaLib/ | |
cp -a ~/Developer/crosswalk-cordova-$version-arm/VERSION platforms/android/ | |
cd platforms/android/CordovaLib/ | |
android update project --subprojects --path . \ | |
--target "android-19" |
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
import android.os.Bundle; | |
import android.os.Build; | |
import android.util.Log; | |
import android.view.Window; | |
import android.graphics.Color; | |
if (Build.VERSION.SDK_INT >= 21) { | |
final Window window = this.getActivity().getWindow(); | |
window.clearFlags(0x04000000); // SDK 19: WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); |
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/python2.6 | |
from itertools import chain | |
from Quartz import CGWindowListCreate as create_list | |
from Quartz import CGMainDisplayID as display_id | |
from Quartz import CGWindowListCreateDescriptionFromArray as lookup | |
import sys | |
class Windows(list): | |
def find(self, name): |
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
//... | |
private void initWebViewSettings() { | |
// ... | |
String defaultUserAgent = webView.getUserAgentString(); | |
String overrideUserAgent = preferences.getString("OverrideUserAgent", null); | |
if (overrideUserAgent != null) { | |
webView.setUserAgentString(overrideUserAgent); | |
} else { |