View Onename verification
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
Verifying that +shameemreza is my blockchain ID. https://onename.com/shameemreza |
View gist:76532c6fb781bfed88db274db7708736
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
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 20px; } | |
@media (min-width: 768px){ | |
body{ padding-top: 150px; } | |
} | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; max-width: 650px; margin: 0 auto; } |
View linkedlis.c
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
#include <stdio.h> | |
typedef struct node { | |
int val; | |
struct node * next; | |
} node_t; | |
void print(node_t * head) { | |
node_t * current = head; | |
printf("***The list begins***\n"); | |
while (current != NULL) { |
View linkedlist3.c
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
#include <stdio.h> | |
typedef struct node { | |
int val; | |
struct node * next; | |
} node_t; | |
void print(node_t * head) { | |
node_t * current = head; | |
printf("***The list begins***\n"); | |
while (current != NULL) { |
View linkedlist2.c
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
#include <stdio.h> | |
typedef struct node { | |
int val; | |
struct node * next; | |
} node_t; | |
void print(node_t * head) { | |
node_t * current = head; | |
while (current != NULL) { |
View custom-country-states-woocommerce.php
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
<?php | |
/** | |
* Add custom states to country in WooCommerce (Ex: Bangladesh) | |
*/ | |
add_filter( 'woocommerce_states', 'BD_woocommerce_states' ); | |
function BD_woocommerce_states( $states ) { | |
$states['BD'] = array( | |
'SS' => __( 'Barandipara', 'woocommerce' ), | |
); | |
return $states; |
View countryinfo.py
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
countries = [ | |
{'timezones': ['Europe/Andorra'], 'code': 'AD', 'continent': 'Europe', 'name': 'Andorra', 'capital': 'Andorra la Vella'}, | |
{'timezones': ['Asia/Kabul'], 'code': 'AF', 'continent': 'Asia', 'name': 'Afghanistan', 'capital': 'Kabul'}, | |
{'timezones': ['America/Antigua'], 'code': 'AG', 'continent': 'North America', 'name': 'Antigua and Barbuda', 'capital': "St. John's"}, | |
{'timezones': ['Europe/Tirane'], 'code': 'AL', 'continent': 'Europe', 'name': 'Albania', 'capital': 'Tirana'}, | |
{'timezones': ['Asia/Yerevan'], 'code': 'AM', 'continent': 'Asia', 'name': 'Armenia', 'capital': 'Yerevan'}, | |
{'timezones': ['Africa/Luanda'], 'code': 'AO', 'continent': 'Africa', 'name': 'Angola', 'capital': 'Luanda'}, | |
{'timezones': ['America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuai |
View gist:d2cebb288bf738ae14d633c0c7da23ed
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
<?php | |
/** | |
* wc_direct_link_to_product_tabs | |
* | |
* Allows you to create custom URLs to activate product tabs by default, directly from the URL | |
* ex: http://mysite.com/my-product-name#reviews | |
*/ | |
function wc_direct_link_to_product_tabs() { | |
if( is_product() ) { | |
?> |
View rate_me_code
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
private boolean MyStartActivity(Intent aIntent) { | |
try | |
{ | |
startActivity(aIntent); | |
return true; | |
} | |
catch (ActivityNotFoundException e) | |
{ | |
return false; | |
} |
View rate_me_code2
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
//Try Google play | |
intent.setData(Uri.parse("market://details?id=com.cubeactive.qnotelistfree")); | |
if (!MyStartActivity(intent)) { | |
//Market (Google play) app seems not installed, let's try to open a webbrowser | |
intent.setData(Uri.parse("https://play.google.com/store/apps/details?id=com.melopixels.mastiunlimited")); | |
if (!MyStartActivity(intent)) { | |
//Well if this also fails, we have run out of options, inform the user. | |
Toast.makeText(this, "Could not open Android market, please install the market app.", Toast.LENGTH_SHORT).show(); | |
} | |
} |
OlderNewer