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
#!/bin/bash | |
# Backup and delete given emergence site | |
# sudo ./delete-site y handle1 handle2 | |
# Configure backup flag | |
backup="y" | |
if [ "$1" == "n" ] || [ "$1" == "y" ]; then | |
backup="$1" | |
else | |
echo "Missing backup param y/n" |
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
{ | |
"order_id":2566, | |
"created_at":"2019-05-12T10:14:08-04:00", | |
"is_tax_exempt":false, | |
"notes":"Here is a delivery note.", | |
"service_type":"Delivery", | |
"tip":"4.62", | |
"tax":"1.11", | |
"shipping":"3.07", | |
"discount":"1.00", |
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
/** | |
* Returns the distance between two given lat / lngs | |
* in miles. | |
* | |
* @params float $lat1 | |
* @params float $lng1 | |
* @params float $lat2 | |
* @params float $lng2 | |
* @return float | |
*/ |
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 | |
namespace Firebase; | |
class CloudMessaging | |
{ | |
public static $authKey = ''; | |
public static function sendMessage($title, $body, $to, $data = [], $priority = 'high') | |
{ |
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 | |
class Twillio | |
{ | |
public static $sid = ''; | |
public static $token = ''; | |
public static $from = ''; | |
/* | |
* Make outgoing call to specified number |
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
To install custom font | |
1. Drag and Drop font into xcode project | |
2. Make sure you add to target | |
- To ensure check the font is included in Target -> Build Phases -> Copy Bundle Resources -> FontName.ttf | |
3. Add font to target plist | |
- Should be under "Fonts provided by application" (array) | |
Value is font file name ie. Oswald-Regular.ttf | |
4. Use below list generator to find specific font name | |
5. UIFont *myFont = [UIFont fontWithName:@"Oswald-Regular" size: 22.0]; |
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
import java.security.MessageDigest; | |
import android.content.pm.PackageManager.NameNotFoundException; | |
import java.security.NoSuchAlgorithmException; | |
import android.util.Base64; | |
import android.content.pm.PackageInfo; | |
# Put this in your main Acitiviy | |
try { | |
PackageInfo info = getPackageManager().getPackageInfo("com.sourcefuse.kudzoo", PackageManager.GET_SIGNATURES); |