Skip to content

Instantly share code, notes, and snippets.

View Lerie82's full-sized avatar

Lerie Taylor Lerie82

View GitHub Profile
my_list_items.add("Java");
my_list_items.add("HTML");
my_list_items.add("Perl");
my_list_items.add("C#");
my_list_items.add("C");
my_list_items.add("C++");
my_list_items.add("Javascript");
my_list_items.add("Dart");
@Lerie82
Lerie82 / FileUtil.java
Created October 6, 2023 05:11
Sketchware FileUtil.java creating-a-searchable-listview-with-sketchware
package com.bigfisher.scary.converter;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
@Lerie82
Lerie82 / main.xml
Created October 5, 2023 19:59
creating-a-searchable-listview-with-sketchware
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/linear1"
android:layout_width="match_parent"
@Lerie82
Lerie82 / MainActivity.java
Created October 5, 2023 19:57
creating-a-searchable-listview-with-sketchware
/*
https://lerielab.wordpress.com/?p=2638
*/
package com.bigfisher.scary.converter;
import android.animation.*;
import android.app.*;
import android.app.Activity;
import android.app.DialogFragment;
import android.app.Fragment;
@Lerie82
Lerie82 / gist:60ff293bed869208dffdafeb9f48c071
Created October 5, 2023 19:44
filter ListView in Sketchware
((ArrayAdapter)lv_list_items.getAdapter()).getFilter().filter(et_user_command.getText().toString());
@Lerie82
Lerie82 / gist:eb8ec2615cebf1f6a4fd7fdb4e7b16e4
Created October 3, 2023 14:16
search from root directory for java libraries, xml and jar files
$ sudo ls -laACR / |grep -iE "(\@\w+\.com|com\.(.+\.){0,}|*.jar|*.xml)" |tee search_
@Lerie82
Lerie82 / ranimal.sh
Created October 3, 2023 08:38
generate a random animal name from a github repo
#!/usr/bin/env bash
#Lerie Taylor 2023
#scarylerie@gmail.com
#generate a random animal name from a github repo
animal_wordlist_url=https://raw.githubusercontent.com/sroberts/wordlists/master/animals.txt
if [ ! -f "animals.txt" ]
then
echo "Downloading animals wordlist.."
@Lerie82
Lerie82 / db.php
Created August 16, 2023 23:47
pdo connection for php
<?php
/*
PDO Database connection
Lerie Taylor 2023
*/
class PDB
{
private $host;
private $db;
class Card
{
private $cardTitle;
private $cardDescr;
private $cardManaCost;
private $cardPower;
private $cardTough;
private $cardType;
// card_info = [ title, descr, mana cost, power, toughness ]
@Lerie82
Lerie82 / index.html
Created July 12, 2023 03:10
HTML skeleton
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/cow.css" rel="stylesheet">
</head>
<body>