-
ionic build --release android
vai gerar um apk na pastaDoProjeto/platforms/android/build/output/android-unsigned.apk. Renomeie o arquivo paranomeDoApk-unsigned.apk
-
Na pasta do java/jde-AlgumaVersao/bin:
keytool -genkey -v -keystore nomeDaChave.keystore -alias aliasQueVcEscolhe -keyalg RSA -keysize 2048 -validity 1000
-
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore nomeDaChave.keystore nomeDoApk-unsigned.apk aliasQueVcEscolheu
-
na pasta do android-adt/sdk/build-tools/algumaVersao:
zipalign -v 4 nomeDoApk-unsigned.apk nomeQueVcQuerDarParaOApk.apk
-
Prontinho. Preencha tudo e tire os prints para o Google Play Developer Console, envie o Apk. `
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
// This code is free to use by anyone (MIT, blabla). | |
// Original Author: [email protected] *uncompressed code @ gist ronkorving/3755461 | |
!function(e){function n(n,t,r){function a(){c&&(c.apply(e,arguments),l||(delete t[i],c=null))}var i,c=r[0],l=n===o;return r[0]=a,i=n.apply(e,r),t[i]={args:r,created:Date.now(),cb:c,id:i},i}function t(n,t,r,a){function i(){c.cb&&(c.cb.apply(e,arguments),l||(delete r[a],c.cb=null))}var c=r[a];if(c){var l=n===o;if(t(c.id),!l){var u=c.args[1],d=Date.now()-c.created;0>d&&(d=0),u-=d,0>u&&(u=0),c.args[1]=u}c.args[0]=i,c.created=Date.now(),c.id=n.apply(e,c.args)}}var r={},a={},i=e.setTimeout,o=e.setInterval,c=e.clearTimeout,l=e.clearInterval;if(!e.addEventListener)return!1;e.setTimeout=function(){return n(i,r,arguments)},e.setInterval=function(){return n(o,a,arguments)},e.clearTimeout=function(e){var n=r[e];n&&(delete r[e],c(n.id))},e.clearInterval=function(e){var n=a[e];n&&(delete a[e],l(n.id))};for(var u=e;u.location!=u.parent.location;)u=u.parent;u.addEventListener("scroll",func |
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
<?php | |
add_filter('manage_posts_columns', 'posts_columns', 5); | |
add_action('manage_posts_custom_column', 'posts_custom_columns', 5, 2); | |
function posts_columns($defaults){ | |
$defaults['thethumbs'] = __('Featured Image'); //name it here. | |
return $defaults; | |
} | |
function posts_custom_columns($column_name, $id){ |
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
/** | |
* Redirect user to checkout page directly after adding to cart | |
* | |
* @return string | |
*/ | |
function wc_redirect_to_checkout() { | |
$checkout_url = WC()->cart->get_checkout_url(); | |
return $checkout_url; | |
} |
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
<?php | |
/** | |
* Use * for origin | |
*/ | |
add_action( 'rest_api_init', function() { | |
remove_filter( 'rest_pre_serve_request', 'rest_send_cors_headers' ); | |
add_filter( 'rest_pre_serve_request', function( $value ) { | |
header( 'Access-Control-Allow-Origin: *' ); | |
header( 'Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE' ); |
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
var countries = ["Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvin |
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
// http://stackoverflow.com/a/30402221/1576978 | |
//Add this eventListener to your map's initialize() function: | |
google.maps.event.addListenerOnce(map, 'bounds_changed', boundLimiter); | |
function boundLimiter(){ | |
// bounds of the desired area -> 1st: SW, 2nd: NE | |
var allowedBounds = new google.maps.LatLngBounds( | |
new google.maps.LatLng(70.33956792419954, 178.01171875), | |
new google.maps.LatLng(83.86483689701898, -88.033203125) | |
); |
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
/* | |
An open-source LM35DZ Temperature Sensor for Arduino. This project will be enhanced on a regular basis | |
(cc) by Daniel Spillere Andrade , http://www.danielandrade.net | |
http://creativecommons.org/license/cc-gpl | |
*/ | |
int pin = 0; // analog pin | |
int tempc = 0,tempf=0; // temperature variables | |
int samples[8]; // variables to make a better precision | |
int maxi = -100,mini = 100; // to start max/min temperature |
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
function ValidURL(str) { | |
var regex = /(http|https):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%!\-\/]))?/; | |
if(!regex .test(str)) { | |
return false; | |
} else { | |
return true; | |
} | |
} |