This file contains 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
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { |
This file contains 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
// | |
// ViewController.swift | |
// Delete | |
// | |
// Created by Mike Chirico on 10/21/15. | |
// Copyright © 2015 Mike Chirico. All rights reserved. | |
// | |
import UIKit |
This file contains 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
package softfruit.solutions.virtuedriver; | |
import android.app.Service; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.location.Location; | |
import android.location.LocationListener; | |
import android.location.LocationManager; | |
import android.os.Bundle; | |
import android.os.Handler; |
This file contains 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
fab.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View view) { | |
// Get Current Date | |
final Calendar c = Calendar.getInstance(); | |
int mYear = c.get(Calendar.YEAR); | |
int mMonth = c.get(Calendar.MONTH); | |
int mDay = c.get(Calendar.DAY_OF_MONTH); | |
This file contains 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
### Android ### | |
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the ART/Dalvik VM | |
*.dex | |
# Java class files |
This file contains 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
val notificationBuilder = NotificationCompat.Builder(this, notificationChannel) | |
.setSmallIcon(R.drawable.ic_stat_notification) | |
.setChannelId(notificationChannel) | |
.setLargeIcon(BitmapFactory.decodeResource(resources, R.mipmap.ic_launcher)) | |
//Notification title | |
.setContentTitle(if (notification.title.isNotEmpty()) { | |
notification.title | |
} else { | |
getString(R.string.app_name) |
This file contains 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
// create network_security_config.xml file | |
<?xml version="1.0" encoding="utf-8"?> | |
<network-security-config> | |
<domain-config cleartextTrafficPermitted="true"> | |
<domain includeSubdomains="true">192.168.11.155:8000</domain> | |
<domain includeSubdomains="true">192.168.11.155</domain> | |
</domain-config> | |
</network-security-config> | |
This file contains 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
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape android:shape="oval"> | |
<size android:width="100dp" | |
android:height="100dp"/> | |
<solid android:color="#59d5fe"/> | |
</shape> | |
</item> | |
</selector> |
This file contains 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
//String to Date Conversion | |
fun toFeedDateParser(strParseDate: String?): Date? { | |
return if (!strParseDate.isNullOrEmpty()) { | |
val tz = TimeZone.getTimeZone("UTC") | |
// DateFormat feedFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.ENGLISH); | |
val feedFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.ENGLISH) | |
feedFormat.timeZone = tz | |
var newDate: Date? = null |
This file contains 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
# activate the bot only if your IDE/Editor application is active | |
tell application "Android Studio" # You can change the IDE/Editor name eg: Xcode or Atom | |
activate | |
repeat | |
set title to "Fyru bot" | |
set message to "I am making auto commit & push" | |
display notification message with title title sound name "Glass" | |
# change the project path,commit message and the branch | |
do shell script "cd Users/ajithvgiri/AndroidStudioProjects/ExampleProject && git add -A && git commit -m 'commit from Fyru bot' && git push origin development" | |
delay 14400 # you can change the delay time current 14400 seconds = 4 hours |
OlderNewer