This file contains 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
{ | |
"recommendations": { | |
"convex": { | |
"fileStructure": { | |
"queries": "convex/{feature}/queries.ts", | |
"mutations": "convex/{feature}/mutations.ts", | |
"actions": "convex/{feature}/actions.ts" | |
}, | |
"rules": [ | |
"Actions must include 'use node' when using Node.js packages", |
This file contains 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
import crypto from "crypto"; | |
import type { NextApiRequest, NextApiResponse } from "next"; | |
import { buffer } from "micro"; | |
export const config = { | |
api: { | |
bodyParser: false, | |
}, | |
}; |
This file contains 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
/** | |
* Importing this file and applying this string to `className` on a hidden div | |
* will allow you to dynamically create tailwind components with any color you | |
* want, because Tailwind will compile and include all the colors it sees in your | |
* final CSS. | |
* | |
* BE WARNED this will increase the size of your compiled CSS file, which negates | |
* one of Tailwind's killer features: smallest CSS file based on just-what-you-use. | |
*/ |
This file contains 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
<?php | |
namespace App\Actions\Fortify; | |
use App\Models\User; | |
use Illuminate\Support\Facades\Hash; | |
use Illuminate\Support\Facades\Validator; | |
use Laravel\Fortify\Contracts\CreatesNewUsers; | |
class CreateNewUser implements CreatesNewUsers |
This file contains 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
/* | |
|-------------------------------------------------------------------------- | |
| Authentication | |
|-------------------------------------------------------------------------- | |
*/ | |
Route::post('/register', [UserController::class, 'register']); | |
Route::post('/login', [UserController::class, 'login']); | |
Route::post('/logout', [UserController::class, 'logout']); |
This file contains 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
<?php | |
namespace App\Http\Controllers\Api; | |
use Illuminate\Http\Request; | |
use Illuminate\Routing\Controller; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Auth\Events\Registered; | |
use App\Actions\Fortify\CreateNewUser; | |
use Illuminate\Validation\ValidationException; |
This file contains 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've probably heard it before, "explicit is better than implicit". Here's a simple | |
* example of that principle in action. | |
* | |
* In this example, our app has only two Fragments that can be visible at any given | |
* moment: CreateFragment and TrendingFragment. Both examples achieve the same result | |
* when everything is working as expected, however... | |
* | |
* In the explicit example, a final else{} branch would indiciate something's not | |
* quite right with our code somewhere since we know there are only two possible |
This file contains 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
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.LinearGradient; | |
import android.graphics.Paint; | |
import android.graphics.Shader; | |
import android.support.annotation.ColorInt; | |
import com.squareup.picasso.Transformation; |
This file contains 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 org.buffer.android.helpers.customtabs; | |
import android.app.Activity; | |
/** | |
* ----------------------- | |
* FAQCustomTab | |
* ----------------------- | |
* | |
* @author Tom Redman |
This file contains 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 org.buffer.android.helpers.customtabs; | |
import android.app.Activity; | |
import android.content.ComponentName; | |
import android.net.Uri; | |
import android.os.Bundle; | |
import android.support.customtabs.CustomTabsCallback; | |
import android.support.customtabs.CustomTabsClient; | |
import android.support.customtabs.CustomTabsIntent; | |
import android.support.customtabs.CustomTabsServiceConnection; |
NewerOlder