Skip to content

Instantly share code, notes, and snippets.

View theFrantic's full-sized avatar

Jorge Daniel Whilchy theFrantic

  • Creativesystems
  • Portugal
View GitHub Profile
// ** In Java **
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// Classic way
Button myButton = (Button)findViewById(R.id.my_button); // You will do this on each view
// Register the onClick listener with the implementation above
package com.frantic.sample
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.text.TextWatcher
import android.widget.Button
import android.text.Editable
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*
@theFrantic
theFrantic / dyoutube.sh
Last active June 30, 2017 16:30
Download mp3 files using youtube-dl
#!/bin/bash
# *********************************************************
# *********************************************************
# dyoutube.sh
# *********************************************************
# *********************************************************
# Download mp3 files using youtube-dl
# *********************************************************
# *********************************************************
@theFrantic
theFrantic / extract_sqlite_db.sh
Created June 27, 2017 12:05
A shell script to extract sqlite database from you app that could be useful for development
#!/bin/bash
# *********************************************************
# *********************************************************
# extract_sqlite_db.sh
# *********************************************************
# version 1.0
# Since: 27/06/2017
# *********************************************************
# *********************************************************
@theFrantic
theFrantic / changelog.md
Last active June 19, 2022 00:10
Daniel version 4.2 Release Changelog

Daniel v4.2 Release: Ultimate Edition!

Changelog

We didn't publish a changelog for a while, because who read this stuff? But now, our IC platform made it mandatory to release each version with the changelog thanks to devops guys. So, here we go...

D4hkMh1XkAAJ6kS

New version of Daniel release today and it has lot of many some changes and improvements. As usual, it has no tests at all as we like to test in PRODUCTION.

Let's see what's new and what we fixed:

@theFrantic
theFrantic / cellBlockA.js
Last active August 29, 2015 14:14
Untrusted Walktrough
/*****************
* cellBlockA.js *
*****************
*
* Good morning, Dr. Eval.
*
* It wasn't easy, but I've managed to get your computer down
* to you. This system might be unfamiliar, but the underlying
* code is still JavaScript. Just like we predicted.
*
@theFrantic
theFrantic / WeatherDataParser.java
Created December 14, 2014 12:13
WeatherDataParser class to parse data from JSON String and test Class
package com.example.android.sunshin.model;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class WeatherDataParser {
/**
* Given a string of the form returned by the api call: