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
void main() { | |
final thankYou = ['E','F','C','H','A','R','I','S','T','O']; | |
final title = ['F','I','L','T','A','T','E']; | |
final name = ['P','A','P','V','E','T']; | |
final emoji = '🥳'; | |
print("${thankYou.join()} ${title.join()} ${name.join()}! $emoji"); | |
} |
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
# Builds a Libjpeg framework for the iPhone and the iPhone Simulator. | |
# Creates a set of universal libraries that can be used on an iPhone and in the | |
# iPhone simulator. Then creates a pseudo-framework to make using libjpeg in Xcode | |
# less painful. | |
# | |
# To configure the script, define: | |
# IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1) | |
# | |
# Then go get the source tar.bz of the libjpeg you want to build, shove it in the | |
# same directory as this script, and run "./libjpeg.sh". Grab a cuppa. And voila. |
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
# | |
# Extracts ticket numbers (e.g. #ZLA-132) from a changelog generated from commit messages | |
# | |
def sanitize_changelog(changelog,hashtag,project_ID,delimiter) | |
# Convert text to an array | |
changelog_array = changelog.split(/\n+/) | |
# Clear rows that start with #ZLA-000 aka. version bumps | |
changelog_array.delete_if do |row| | |
row.start_with?('#ZLA-000') |
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
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
// Override point for customization after application launch. | |
var types: UIUserNotificationType = UIUserNotificationType.Badge | | |
UIUserNotificationType.Alert | | |
UIUserNotificationType.Sound | |
var settings: UIUserNotificationSettings = UIUserNotificationSettings( forTypes: types, categories: nil ) | |
application.registerUserNotificationSettings( settings ) | |
application.registerForRemoteNotifications() | |
return true |
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
//Set these properties | |
@property NSMutableArray *genres; | |
@property int counter; | |
@property NSMutableArray *workingGenres; | |
//Set counter to 0 | |
_counter=0 | |
//Populate the "genres" array with the NSStrings of your genres |
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 | |
// no direct access | |
defined( '_JEXEC' ) or die( 'Restricted access' ); | |
define( 'YOURBASEPATH', dirname(__FILE__) ); | |
require_once YOURBASEPATH . '/push.php'; | |
class plgSystemContentpush extends JPlugin | |
{ |