$ demo on|off [hhmm]
Enable or disable the demo mode on a connected Android device or emulator. You can also pass in a custom value for the system clock in the HHMM format (only used when you use the on command).
| let gifts = [ "partridge in a pear tree", "Two turtle doves", "Three French hens", | |
| "Four calling birds", "Five golden rings", "Six geese a-laying", | |
| "Seven swans a-swimming", "Eight maids a-milking", "Nine ladies dancing", | |
| "Ten lords a-leaping", "Eleven pipers piping", "Twelve drummers drumming" ] | |
| let nth = [ "first", "second", "third", "fourth", "fifth", "sixth", | |
| "seventh", "eighth", "ninth", "tenth", "eleventh", "twelfth" ] | |
| func gifts(for day: Int) -> String { | |
| var result = "On the \(nth[day-1]) day of Christmas, my true love sent to me:\n" |
| import React from 'react'; | |
| import { | |
| View, | |
| Text, | |
| } from 'react-native'; | |
| import { TextInputMask } from 'react-native-masked-text' | |
| export default function maskedInputTemplate(locals) { | |
| if (locals.hidden) { | |
| return null; |
| #/bin/sh | |
| # Inpiration: http://engineeringblog.yelp.com/2016/05/yelp-android-app-went-on-a-diet.html | |
| # `-lossless` not used to give support for Android 4.0+ | |
| # Make sure cwebp is installed. | |
| if ! type "cwebp" > /dev/null; then | |
| echo "Please install cwebp to continue:" | |
| echo "brew install webp" | |
| exit 1 | |
| fi |
| #!/usr/bin/python | |
| # License for any modification to the original (linked below): | |
| # ---------------------------------------------------------------------------- | |
| # "THE BEER-WARE LICENSE" (Revision 42): | |
| # Sebastiano Poggi and Daniele Conti wrote this file. As long as you retain | |
| # this notice you can do whatever you want with this stuff. If we meet some day, | |
| # and you think this stuff is worth it, you can buy us a beer in return. | |
| import argparse, sys, subprocess, tempfile |
| extension String { | |
| func size(withAttributes attrs: [String:AnyObject], constrainedTo box: NSSize) -> NSRect { | |
| let storage = NSTextStorage(string: self) | |
| let container = NSTextContainer(containerSize: NSSize(width: box.width, height: box.height)) | |
| let layout = NSLayoutManager() | |
| layout.addTextContainer(container) | |
| storage.addLayoutManager(layout) | |
| storage.addAttributes(attrs, range: NSMakeRange(0, storage.length)) | |
| container.lineFragmentPadding = 0.0 | |
| let _ = layout.glyphRangeForTextContainer(container) |
| package net.cogindo.ssl; | |
| import java.io.IOException; | |
| import java.net.InetAddress; | |
| import java.net.Socket; | |
| import java.net.UnknownHostException; | |
| import java.security.KeyManagementException; | |
| import java.security.NoSuchAlgorithmException; | |
| import javax.net.ssl.SSLContext; |
| #!/bin/bash | |
| while true | |
| do | |
| wget -q --tries=10 --timeout=20 --spider http://google.com | |
| if [[ $? -eq 0 ]]; then | |
| echo "Online" | |
| else | |
| echo "Offline" | |
| echo raspberry | sudo -S sudo reboot | |
| fi |
| #!/bin/bash | |
| # How to install: | |
| # exo-open "http://developer.android.com/sdk/index.html#Other" | |
| # sudo apt-get install libav-tools imagemagick | |
| # wget https://gist.githubusercontent.com/lorenzos/e8a97c1992cddf9c1142/raw/android-screen-to-gif.sh | |
| # chmod a+x android-screen-to-gif.sh | |
| # Help message | |
| function usage() { |
| Rank | Name | Bundle ID | Version | Min iOS Version | SDK Version | Uses Swift | Universal App | VC Based Status Bar Management | Xcode Version | |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Candy Crush | com.midasplayer.apps.candycrushjellysaga1 | 1.6.5 | 6 | iphoneos8.0 | No | Universal | Global | 610 | |
| 2 | Piano Tiles 2 | com.cmplay.tiles2 | 1.1.7 | 7 | iphoneos9.2 | No | Universal | Global | 720 | |
| 3 | Messenger | com.facebook.Messenger | 52 | 7 | iphoneos9.1 | No | Universal | VC Based | 710 | |
| 4 | com.burbn.instagram | 7.13.1 | 7 | iphoneos9.1 | No | iPhone Only | VC Based | 710 | ||
| 5 | YouTube | com.google.ios.youtube | 10.49.13 | 7 | iphoneos8.4 | No | Universal | Global | 640 | |
| 6 | Snapchat | com.toyopagroup.picaboo | 9.21.1 | 7 | iphoneos9.0 | No | iPhone Only | Global | 701 | |
| 7 | Meltdown | com.robtop.geometrydashmeltdown | 1 | 6 | iphoneos9.1 | No | Universal | Global | 710 | |
| 8 | com.facebook.Facebook | 46 | 7 | iphoneos9.1 | No | Universal | Global | 710 | ||
| 9 | Netflix | com.netflix.Netflix | 7.2.4 | 7 | iphoneos9.0 | No | Universal | VC Based | 700 |
$ demo on|off [hhmm]
Enable or disable the demo mode on a connected Android device or emulator. You can also pass in a custom value for the system clock in the HHMM format (only used when you use the on command).