This file contains 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
#set | |
adb shell settings put global http_proxy 10.10.11.195:8888 | |
#unset | |
adb shell settings put global http_proxy :0 | |
requires to restart the app to take effect |
This file contains 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
{ | |
"role": "Android Developer", | |
"email": "[email protected]", | |
"phone": "07000000000", | |
"link": "http://linkedin.com/in/stephaneschittly", | |
"picture": "https://avatars0.githubusercontent.com/u/225409?s=400&v=4", | |
"jobs": [ | |
{ | |
"title": "Ostmodern", | |
"year": "2019", |
This file contains 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
<html> | |
<head> | |
<meta charset=”utf-8"> | |
<meta http-equiv=”X-UA-Compatible” content=”IE=edge”> | |
<meta name=”viewport” content=”width=device-width, initial-scale=1"> | |
</head> | |
<body style=”background: #111111"> | |
<?php | |
$dir = getcwd() . “/(YOUR_PICS_FOLDER_HERE)”; | |
$files = glob($dir . “/*.{jpg,png}”, GLOB_BRACE); |
This file contains 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
<script> | |
function isInView(el) { | |
return (el.getBoundingClientRect().top >= 0) && (el.getBoundingClientRect().bottom <= window.innerHeight); | |
} | |
function checkVisibility() { | |
var images = document.getElementsByTagName('img'); | |
for (var i=0; i<images.length; i++) { | |
if(images[i].getAttribute('data-src') && images[i].getAttribute('src') == null) { | |
if (isInView(images[i])) |
This file contains 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
systemctl status bluetooth | |
sudo systemctl start bluetooth | |
sudo apt-get install bluetooth bluez-utils blueman bluez python-gobject python-gobject-2 | |
sudo usermod -G bluetooth -a pi | |
sudo apt-get install blueman |
This file contains 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
08-15 01:23:29.947 3122-3122/net.stf.timelapser E/libEGL: call to OpenGL ES API with no current context (logged once per thread) | |
08-15 01:23:30.151 3122-3172/net.stf.timelapser E/Rajawali: [org.rajawali3d.loader.LoaderOBJ.MaterialLib] Could not find material library file (.mtl). | |
08-15 01:23:31.932 3122-3160/net.stf.timelapser E/Rajawali: Getting location of uniform: uTime returned -1! | |
08-15 01:23:31.932 3122-3160/net.stf.timelapser E/Rajawali: Getting location of uniform: uLightPosition0 returned -1! | |
08-15 01:23:31.933 3122-3160/net.stf.timelapser E/Rajawali: Getting location of uniform: uLightPosition1 returned -1! | |
08-15 01:23:41.037 3122-3122/net.stf.timelapser E/libEGL: call to OpenGL ES API with no current context (logged once per thread) | |
08-15 01:23:41.118 3122-3387/net.stf.timelapser E/Rajawali: [org.rajawali3d.loader.LoaderOBJ.MaterialLib] Could not find material library file (.mtl). | |
08-15 01:23:41.122 3122-3386/net.stf.timelapser E/Rajawali: [org.rajawali3d.loader.LoaderOBJ.MaterialLib] Could not find |
This file contains 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
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
$ git ls-files | xargs wc -l |
This file contains 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
package net.stf.threelevelexpandablelistview; | |
import android.annotation.SuppressLint; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.drawable.Drawable; | |
import android.os.Build; | |
import android.util.AttributeSet; | |
import android.util.SparseArray; | |
import android.view.View; |
This file contains 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
adb -s TA00301CVR forward tcp:5601 tcp:5601 |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="white">#FFFFFF</color> | |
<color name="ivory">#FFFFF0</color> | |
<color name="lightyellow">#FFFFE0</color> | |
<color name="yellow">#FFFF00</color> | |
<color name="snow">#FFFAFA</color> | |
<color name="floralwhite">#FFFAF0</color> | |
<color name="lemonchiffon">#FFFACD</color> | |
<color name="cornsilk">#FFF8DC</color> |
NewerOlder