This requires the latest version of apktool.
apktool d $APK_PATH -o $OUTPUT_FOLDER
# Open the apktool.yml text file
# Alter the versionCode and versionName entries
# now rebuild!
apktool build $OUTPUT_FOLDER
Enumerable.Range(1, 30).Select(num => | |
((Func<string[], string>) | |
(buzz => new string[]{ | |
buzz[((num + 2) % 3) / 2] + | |
buzz[((num + 4) % 5) / 4 * 2], | |
""+num | |
}.First(r => r != "")))(new[] { null, "fizz", "buzz"}) | |
).ToList().ForEach(s => Console.WriteLine(s)); |
var expect = require("chai").expect; | |
var cakes = function(recipe, ingredients) { | |
var result = Math.floor(Object.keys(recipe).map(function(ingredient) { | |
return ingredients[ingredient] / recipe[ingredient]; | |
}).sort(function(a,b) { | |
return a - b; | |
})[0]); | |
return isNaN(result) ? 0 : result; |
using System; | |
using Xamarin.Forms.Maps.Android; | |
using Android.Gms.Maps; | |
using Android.Gms.Maps.Model; | |
using Xamarin.Forms; | |
using CustomMapTiles; | |
using CustomMapTiles.Droid.Renderers; | |
[assembly: ExportRenderer (typeof (CustomMap), typeof (CustomMapRenderer))] | |
namespace CustomMapTiles.Droid.Renderers |
This requires the latest version of apktool.
apktool d $APK_PATH -o $OUTPUT_FOLDER
# Open the apktool.yml text file
# Alter the versionCode and versionName entries
# now rebuild!
apktool build $OUTPUT_FOLDER
Pythondotorg at Montreal-Python Project Night | |
============================================= | |
The idea is to work on a Django project and to help the Python community by | |
making the Python website better. | |
For Installation instructions, please have a look at the following document: | |
http://htmlpreview.github.io/?https://github.com/mtlpy/pythondotorgdocs/blob/master/build/html/index.html |
// MIT License | |
// Nicholas Ventimiglia | |
// 2016-9-19 | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Collections.Specialized; | |
using System.Linq; |
One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:
// Filename: HttpServer.cs | |
// Author: Benjamin N. Summerton <define-private-public> | |
// License: Unlicense (http://unlicense.org/) | |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Net; | |
using System.Threading.Tasks; |
import Foundation | |
import WebKit | |
final class WebCacheCleaner { | |
class func clean() { | |
HTTPCookieStorage.shared.removeCookies(since: Date.distantPast) | |
print("[WebCacheCleaner] All cookies deleted") | |
WKWebsiteDataStore.default().fetchDataRecords(ofTypes: WKWebsiteDataStore.allWebsiteDataTypes()) { records in |
using System.Collections; | |
using System.Diagnostics; | |
using A11YGuide.Controls; | |
using A11YGuide.Droid.Helpers; | |
using A11YGuide.ViewModels.Search; | |
using Android.Support.V7.Widget; | |
using Android.Views; | |
using Android.Widget; | |
using fivenine.Core.Extensions; | |
using Xamarin.Forms; |