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
val MIGRATION_8_9 = object : Migration(8, 9) { | |
override fun migrate(database: SupportSQLiteDatabase) { | |
database.execSQL("CREATE TABLE `savedAlbums_new` (`entityOwnerId` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `id` TEXT NOT NULL, `artwork` TEXT, `artist` TEXT, `description` TEXT, `album_genre` TEXT, `name` TEXT, `presave` INTEGER NOT NULL, `artist_name` TEXT, `label` TEXT, `created` INTEGER NOT NULL, `modified` INTEGER NOT NULL, `releasedate` INTEGER NOT NULL, `entityOwner` TEXT, `uniqueId` TEXT, `indexInQueue` INTEGER NOT NULL default -1, `sharelink` TEXT)") | |
database.execSQL("CREATE UNIQUE INDEX `index_savedAlbums_uniqueId` ON `savedAlbums_new` (`uniqueId`)") | |
database.execSQL("INSERT INTO `savedAlbums_new` (`id` , `artwork`, `artist` , `description` , `album_genre`, `name` , `presave` , `artist_name`, `label` , `created` , `modified` , `releasedate`, `entityOwner`) select `id` , `artwork`, `artist` , `description` , `album_genre`, `name` , `presave` , `artist_nam |
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
#include "list.h" | |
#include "stdlib.h" | |
#include "stdio.h" | |
#include "stddef.h" | |
typedef struct component { | |
int id; | |
// This is used to link components together in their list | |
struct list_head list_node; |
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
Step 1 - Show Verification Screen. | |
Step 2 - Fetch List of bank Banks from paystack Api | |
Endpoint . (https://api.paystack.co/bank) This is a `GET`request. | |
step 3 . Loop through the response you get from step two and display a drop down of the nice name | |
Step 4 : user enters account Number. | |
Step 5 - User clicks verify Button | |
Step 6 . : i. You get the account number from the field and assign to a vraiable | |
ii. get the user bank name and find the sort code from the list you got in step 2. | |
you may have to use a forloop to get it. | |
Step 7 : Make a `POST` request to paystack api (initial gist i sent) |
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
const apiUrl = `https://api.paystack.co/bank/resolve?account_number=${accountNumber}&bank_code=${bankCode}`; | |
const headers = { | |
headers: { | |
Authorization: `Bearer ${PAYSTACK_SECRET}` | |
} | |
}; | |
return axios.get(apiUrl, headers); |
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
// ==UserScript== | |
// @name Always on focus | |
// @namespace http://www.webmonkey.com | |
// @description Some pages check the document.hidden property and won't render content unless the page is in focus. This script will trick them to think they are in focus so you can preload them in a tab and visit them when they have finished loading. | |
// ==/UserScript== | |
Object.defineProperty(document, "hidden", { value : false}); |