Demonstrates how to handle the window's focus and blur events.
This code does not depend on any third-party libraries like jQuery.
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
| """Simple HTTP Server. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| """ | |
| __version__ = "0.6" |
Demonstrates how to handle the window's focus and blur events.
This code does not depend on any third-party libraries like jQuery.
| import android.os.Bundle; | |
| import android.os.Build; | |
| import org.apache.cordova.*; | |
| import android.webkit.WebView; | |
| public class MainActivity extends CordovaActivity | |
| { | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) | |
| { | |
| super.onCreate(savedInstanceState); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| this funny! | |
| </body> | |
| <script> | |
| function require(p){ |
| #!/usr/bin/python | |
| # Filename s5.py | |
| # Python Dynamic Socks5 Proxy | |
| # Usage: python s5.py 1080 | |
| # Background Run: nohup python s5.py 1080 & | |
| # Email: [email protected] | |
| import socket, sys, select, SocketServer, struct, time | |
| class ThreadingTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer): pass |
| import os | |
| from PIL import Image | |
| def extractFrames(inGif, outFolder): | |
| frame = Image.open(inGif) | |
| nframes = 0 | |
| while frame: | |
| frame.save( '%s/%s-%s.gif' % (outFolder, os.path.basename(inGif), nframes ) , 'GIF') | |
| nframes += 1 |
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| */ | |
| 'use strict'; | |
| var React = require("react-native"); | |
| var { | |
| AppRegistry, |
| android { | |
| signingConfigs { | |
| release | |
| } | |
| buildTypes { | |
| release { | |
| signingConfig signingConfigs.release | |
| } |
| public class MaxHeightListViews extends ListView { | |
| int maxHeight; | |
| public MaxHeightListViews(Context context) { | |
| super(context); | |
| setViewHeight(); | |
| } | |
| public MaxHeightListViews(Context context, AttributeSet attrs) { | |
| super(context, attrs); |