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
diff --git a/packages/waku/src/lib/plugins/vite-plugin-deploy-aws-lambda.ts b/packages/waku/src/lib/plugins/vite-plugin-deploy-aws-lambda.ts | |
index 09a09d2..452efc7 100644 | |
--- a/packages/waku/src/lib/plugins/vite-plugin-deploy-aws-lambda.ts | |
+++ b/packages/waku/src/lib/plugins/vite-plugin-deploy-aws-lambda.ts | |
@@ -1,10 +1,22 @@ | |
import path from 'node:path'; | |
-import { writeFileSync } from 'node:fs'; | |
+import { | |
+ appendFileSync, | |
+ cpSync, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<style> | |
html, | |
body { | |
margin: 0; | |
padding: 0; |
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 type { Hono } from 'hono'; | |
import { getPlatformProxy } from 'wrangler'; | |
import { WebSocketPair } from 'miniflare'; | |
Object.assign(globalThis, { WebSocketPair }) | |
export const cloudflareDevServer = (cfOptions: any) => async (app: Hono) => { | |
const proxyPromise = getPlatformProxy({ | |
...(cfOptions || {}), | |
}) |
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
// A script that can pull down the result of the introspection query | |
// from a running graphql server. | |
// Dependencies: | |
// npm i -S isomorphic-fetch graphql-tag graphql apollo-client | |
// Usage: | |
// node fetch-graphql-schema [graphql url] | |
// Example: |
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
class Openbr < Formula | |
# This should just temporarily override the official homebrew formula | |
# until the next release. And it is pointing to a commit on the | |
# master git branch, so use at your own risk. It does seem | |
# to get things working with the latest Qt version on homebrew. | |
# See https://github.com/biometrics/openbr/pull/486 | |
# Copy the contents of this file to | |
# /usr/local/Library/Taps/homebrew/homebrew-science/openbr.rb | |
desc "Open Source Biometric Recognition" |
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
// Usage: requires a version of fullPage.js that incorporates | |
// pull request #1498: https://github.com/alvarotrigo/fullPage.js/pull/1498 | |
// | |
// Then initialize fullPage.js and set this object to the | |
// scrollOverflowHandler option. | |
// ``` | |
// scrollOverflow: true, | |
// scrollOverflowHandler: iscrollHandler, | |
// ``` |
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\extensions\helper; | |
use lithium\core\Libraries; | |
use lithium\template\view\TemplateException; | |
use lithium\template\View; | |
/** | |
* An implementation of Joomla! template module positions for Lithium. |
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
var readline = require('readline'), | |
shotgun = require('shotgun'), | |
shell = new shotgun.Shell(), | |
context = {}; // Declare empty context object. | |
// Create interface that reads from console and outputs to console. | |
var rl = readline.createInterface(process.stdin, process.stdout); | |
// Configure shotgun. | |
shell |
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\controllers; | |
use app\models\Downloads; | |
class DownloadsController extends \lithium\action\Controller { | |
public function index() { | |
$this->request->privateKeys = array('id', 'user_id'); |
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 li3_common\analysis; | |
use lithium\action\Request; | |
use lithium\console\Request as ConsoleRequest; | |
use lithium\core\Environment; | |
use lithium\data\Connections; | |
use lithium\util\String; | |
use MongoDate; |
NewerOlder