Skip to content

Instantly share code, notes, and snippets.

View euri16's full-sized avatar

Eury Perez euri16

View GitHub Profile
[plugins]
[...]
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
google-playServices = { id = "com.google.gms.google-services", version.ref = "google-play-services" }
firebase-crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "firebase-crashlytics-plugin"}
[versions]
[...]
compose-plugin = "1.6.0"
firebase-bom = "32.7.4"
firebase-crashlytics-plugin = "2.9.9"
google-play-services = "4.4.1"
[...]
extension UIColor {
public convenience init?(hexString: String) {
let r, g, b, a: CGFloat
if hexString.hasPrefix("#") {
let start = hexString.index(hexString.startIndex, offsetBy: 1)
let hexColor = hexString.substring(from: start)
if hexColor.characters.count == 8 {
let scanner = Scanner(string: hexColor)
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
static int[] solve(int[] grades){
// Complete this function
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
static void miniMaxSum(int[] arr) {
// Complete this function
using System;
using Acr.UserDialogs;
using Firebase.Database;
using Firebase.Database.Query;
using LocorredoresApp.Helpers;
using LocorredoresApp.Models;
using Prism.Commands;
using Prism.Navigation;
namespace LocorredoresApp.ViewModels
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('$(t(){n F={"C 9L":{"l-1T":[{"f":"2.40","e":"32.9M","c":"1N","9":"2.40","a":"2","d":"32.9K","7":"l-1I","b":"4"},{"f":"2.1K","e":"48.9J","c":"9H","9":"2.k","a":"2","d":"48.9I","7":"l-1V","b":"6"},{"f":"2.30","e":"46.9N","c":"2c","9":"2.30","a":"2","d":"46.9O","7":"l-1q","b":"6"},{"f":"2.40","e":"55.9T","c":"2c","9":"2.40","a":"2","d":"55.9U","7":"l-1q x","b":"8"},{"f":"2.50","e":"50.9S","c":"9R","9":"2.50","a":"2","d":"50.9P","7":"l-3t","b":"6"},{"f":"2.k","e":"49.9Q","c":"3A","9":"2.k","a":"2","d":"49.9G","7":"l-1D","b":"8"},{"f":"2.20","e":"54.9F","c":"1A","9":"2.20","a":"2","d":"54.9v","7":"l-3w","b":"8"},{"f":"2.40","e":"48.9w","c":"3u","9":"2.40","a":"2","d":"48.9u","7":"l-9t","b":"
$scope.datePickerChange = function () {
var selectedDate = moment($('#date').val(), 'DD/MM/YYYY');
var selectedSchedules;
var selectedVenue;
var timeFrames;
$scope.schedulesEnabled = false;
/* if ($scope.scheduleTimes.length > 0){
$scope.schedule = {
times: $scope.scheduleTimes[0]
};
if(myEditText.getText().length() == nameView.getText().length()){
//Correct
}else{
//Incorrect
}
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button b = (Button)findViewById(R.id.button1);
TextView nameView = (TextView)findViewById(R.id.nameView);
nameView.setText("saya");
b.setOnClickListener(new View.OnClickListener() {