Skip to content

Instantly share code, notes, and snippets.

View jgonfer's full-sized avatar
Working on CoinDreams!

Josep Gonzalez jgonfer

Working on CoinDreams!
View GitHub Profile
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreigrcwrba23llgghfjdxuhbp2tr2mfqz5oupb45p7nlrxdnymtunky ✅
Create your profile today to start building social connection and trust online at https://3Box.io/

Keybase proof

I hereby claim:

  • I am jgonfer on github.
  • I am jgonfer (https://keybase.io/jgonfer) on keybase.
  • I have a public key ASAbkt2eLvFzoHEG454W_uVlsLH1oAzoAwABErq1tET0oQo

To claim this, I am signing this object:

@jgonfer
jgonfer / ACGdpr.gml
Created June 9, 2018 23:01
Implementation of the new GDPR function to comply with the GDPR.
adcolony_set_gdpr_consent(1);
// You can also use the new macros ACYes and ACNo
adcolony_set_gdpr_consent(ACYes);
@jgonfer
jgonfer / GADGdpr.gml
Created May 25, 2018 21:26
Implementation of the new GDPR function to comply with the GDPR.
admob_set_gdpr_consent(1);
// You can also use the new macros GADYes and GADNo
admob_set_gdpr_consent(GADYes);
@jgonfer
jgonfer / CBSetMuted.gml
Last active May 23, 2018 22:07
Sync Chartboost ad mute status with in-game mute capability.
chartboost_set_muted(1);
// You can also use the new macros CBYes and CBNo
chartboost_set_muted(CBYes);
@jgonfer
jgonfer / CBGdpr.gml
Last active May 23, 2018 22:08
To enable GDPR data collection restrictions. This method should be called before chartboost_init_sdk.
chartboost_restrict_data_collection(1);
// You can also use the new macros CBYes and CBNo
chartboost_restrict_data_collection(CBYes);
@jgonfer
jgonfer / UAGdpr.gml
Last active May 23, 2018 06:56
Implementation of the new GDPR function to comply with the GDPR.
unity_ads_set_gdpr_consent(1);
// You can also use the new macros UAYes and UANo
unity_ads_set_gdpr_consent(UAYes);
override func viewDidLoad() {
super.viewDidLoad()
if #available(iOS 11.0, *) {
pumpkinPngImageView.adjustsImageSizeForAccessibilityContentSizeCategory = true
pumpkinPdfImageView.adjustsImageSizeForAccessibilityContentSizeCategory = true
} else {
// Fallback on earlier versions
}
}
@jgonfer
jgonfer / MoreApps.gml
Last active May 6, 2017 10:03
Chartboost MoreApps removal functions
// Get a new MoreApps list
chartboost_cache_more_apps( location );
// Display the MoreApps screen
chartboost_show_more_apps( location );
// Check if MoreApps screen is available
chartboost_has_more_apps( location );
@jgonfer
jgonfer / BlogExampleJava.java
Last active April 13, 2017 08:24
Code examples for my Blog Page
public void showVideo() {
RunnerActivity.CurrentActivity.runOnUiThread(new Runnable() {
public void run() {
if (videoAd.isLoaded()) {
videoAd.show();
}
}
});
}