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
function doGet() { | |
getAdReports(); | |
} | |
function getAdReports() { | |
var start = "today-6d"; //one week ago | |
var end = "today"; | |
var clients = AdSense.Adclients.list().getItems(); |
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
@echo off | |
for %%f in (*.jar) do echo %%f && jar tf %%f > %%f.txt |
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
setlocal EnableDelayedExpansion | |
echo Searching for java files... | |
set JAVA_FILES= | |
for %%i in (java\*.java) do set JAVA_FILES=!JAVA_FILES! %%i && echo %%i | |
echo Found Java Files:%JAVA_FILES% |
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
:: This script compiles java files from | |
:: java folder and puts class files into | |
:: classes folder which are then compiled | |
:: into a jar file in build folder. | |
:: FILES HEIRARCHY | |
:: example | |
:: |_ build | |
:: | |_ compiled.jar (generated - Final packaged jar file) | |
:: |_ classes (generated - Contains compiled class files) |
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
public String getParentPackageName() { | |
PackageManager pm = context.getPackageManager(); | |
String packageName = context.getApplicationContext().getPackageName(); | |
PackageInfo pi; | |
try { | |
pi = pm.getPackageInfo(packageName, PackageManager.GET_ACTIVITIES); | |
} catch (NameNotFoundException e) { | |
e.printStackTrace(); | |
} |
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
Press the black button😉 | |
<⚫> 👈🏻 |
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
// Find | |
symbol: +method (.+) | |
// Format | |
@DefaultMessage("")\n@Description("")\nString $1;\n\n | |
------------------------------------------------------ | |
// or much powerful (but still needs to set component description manually) | |
// 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
/* | |
LiquidCrystal Library - Hello World | |
Demonstrates the use a 16x2 LCD display. The LiquidCrystal | |
library works with all LCD displays that are compatible with the | |
Hitachi HD44780 driver. There are many of them out there, and you | |
can usually tell them by the 16-pin interface. | |
This sketch prints "Hello World!" to the LCD | |
and shows the time. |
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
import android.graphics.*; | |
import android.view.*; | |
import android.util.*; | |
round(n) { | |
return Math.round(n*100.0)/100.0; | |
} | |
WindowManager wm = (WindowManager) ctx.getSystemService("window"); | |
dm = new DisplayMetrics(); |
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 tk.pavi2410; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.security.KeyStore; | |
import java.security.KeyStoreException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.cert.Certificate; | |
import java.security.cert.CertificateEncodingException; |
OlderNewer