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
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction | |
import { NextApiRequest, NextApiResponse } from 'next'; | |
import { getReviews } from 'app-store-scraper-reviews'; | |
import { Configuration, OpenAIApi } from 'openai'; | |
const configuration = new Configuration({ | |
apiKey: process.env.OPENAI_API_KEY, | |
}); | |
const openai = new OpenAIApi(configuration); |
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
enum ProfileSteps { | |
EmailVerification = 'emailVerification', | |
Employment = 'employment', | |
Education = 'education', | |
Licenses = 'licenses', | |
Certifications = 'certifications', | |
References = 'references', | |
SkillsChecklist = 'skillsChecklist', | |
BackgroundQuestions = 'backgroundQuestions', | |
PersonalInfo = 'personalInfo', |
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
var dropbox = (function() { | |
var pluginName = "DropboxSync", | |
exec = cordova.require("cordova/exec"), | |
me = {}; | |
me.link = function() { | |
var deferred = $.Deferred(); | |
exec( | |
function(result) { |
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
package com.rossmartin.dropbox; | |
import org.apache.cordova.*; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import android.content.Intent; | |
import android.database.Cursor; | |
import android.net.Uri; |
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
package com.rossmartin.dropbox; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.util.Log; | |
import org.apache.cordova.*; | |
public class PhoneGapSync extends CordovaActivity |
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
function showFileContents(file){ | |
console.log("showFileContents()"); | |
console.log(file); | |
} |
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
- (void) restClient:(DBRestClient*)client loadedFile:(NSString*)localPath { | |
NSLog(@"File loaded into path: %@", localPath); | |
NSData *fileData; | |
fileData = [NSData dataWithContentsOfFile:localPath]; | |
if (!fileData){ | |
NSLog(@"Error - File not found"); | |
} | |
NSString* fileString = [[NSString alloc] initWithData:fileData encoding:NSUTF8StringEncoding]; | |
AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate]; |
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
// you can set this fix in DOM ready or jQM's mobileinit | |
// DOM ready | |
$(function(){ | |
$.event.special.swipe.scrollSupressionThreshold = 100; | |
}); | |
// jQM defaults | |
$(document).bind("mobileinit", function(){ | |
$.event.special.swipe.scrollSupressionThreshold = 100; |
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
for (var i = 0; i < testResults.length; i++){ | |
(function(i){ | |
db.transaction(function(tx){ | |
tx.executeSql( | |
"SELECT * FROM ( " + | |
"SELECT 'lab' AS table_name, id FROM lab_test_names " + | |
"WHERE organizerClassId = ? " + | |
"LIMIT 1 " + | |
" ) " + | |
"UNION " + |
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
SELECT * FROM ( | |
SELECT 'lab' AS table_name, id FROM table1 | |
WHERE organizerClassId = '4013-5' LIMIT 1) | |
UNION | |
SELECT * FROM ( | |
SELECT 'rad' AS table_name, id FROM table2 | |
WHERE organizerClassId = '4013-5' LIMIT 1); |
NewerOlder