Skip to content

Instantly share code, notes, and snippets.

View KevinOfNeu's full-sized avatar
🍊
I create things

♫♨ ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎ KevinOfNeu

🍊
I create things
View GitHub Profile
## 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.

@KevinOfNeu
KevinOfNeu / MainActivity.java
Created May 12, 2015 11:42
cordova platfrom's MainActivity.java file for debugging webview remotely.
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);
@KevinOfNeu
KevinOfNeu / index.html
Created July 8, 2015 06:47
tiny require and examples!
<!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
@KevinOfNeu
KevinOfNeu / extractGifs.py
Created January 19, 2016 02:46 — forked from revolunet/extractGifs.py
extract frames from animated gif using python+PIL
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
@KevinOfNeu
KevinOfNeu / ReactNativeExample.jsx
Created April 6, 2016 07:29 — forked from TheSeamau5/ReactNativeExample.jsx
React Native Example Reddit Client
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require("react-native");
var {
AppRegistry,
@KevinOfNeu
KevinOfNeu / build.gradle
Created May 31, 2016 14:00 — forked from gabrielemariotti/build.gradle
Use signing.properties file which controls which keystore to use to sign the APK with gradle.
android {
signingConfigs {
release
}
buildTypes {
release {
signingConfig signingConfigs.release
}
@KevinOfNeu
KevinOfNeu / MaxHeightListViews.java
Created June 17, 2016 10:10
MaxHeightListViews
public class MaxHeightListViews extends ListView {
int maxHeight;
public MaxHeightListViews(Context context) {
super(context);
setViewHeight();
}
public MaxHeightListViews(Context context, AttributeSet attrs) {
super(context, attrs);