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
<Form | |
inputComponent={FormInput} | |
buttonComponent={FormButton} | |
schema={props.schema as any} | |
defaultValues={props.initialValues} | |
onSubmit={async (values) => { | |
... | |
} | |
{({ Field, Errors, Button, control, formState, register, watch }) => ( | |
<> |
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
//node index3.js --url="https://www.eff.org" --viewportWidth 480 | |
const CDP = require('chrome-remote-interface'); | |
const argv = require('minimist')(process.argv.slice(2)); | |
const file = require('mz/fs'); | |
const timeout = require('delay'); | |
// CLI Args | |
const url = argv.url || 'https://www.google.com'; | |
const format = argv.format === 'jpeg' ? 'jpeg' : 'png'; |
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 main | |
import ( | |
"database/sql" | |
"errors" | |
"fmt" | |
_ "github.com/bmizerany/pq" | |
"os" | |
"regexp" | |
"strings" |
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
template<class T> | |
ALWAYS_INLINE | |
static SmartPtr<T> getResource(ObjectData* obj, const char* varName) { | |
auto var = obj->o_get(varName, true, s_zmqsocket.get()); | |
if (var.getType() == KindOfNull) { | |
return nullptr; | |
} | |
return cast<T>(var); | |
} |
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
%define hhvm_dir %{_var}/hhvm | |
%define hhvm_group hhvm | |
%define hhvm_user hhvm | |
%global _enable_debug_package 0 | |
%global debug_package %{nil} | |
%global __os_install_post /usr/lib/rpm/brp-compress %{nil} | |
Name: hhvm | |
Version: 3.3.0 | |
Release: 1%{?dist} |
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
%define hhvm_dir %{_var}/hhvm | |
%define hhvm_user hhvm | |
%global _enable_debug_package 0 | |
%global debug_package %{nil} | |
%global __os_install_post /usr/lib/rpm/brp-compress %{nil} | |
Name: hhvm | |
Version: 3.3 | |
Release: 0.1%{?dist} | |
Summary: HipHop VM (HHVM) is a virtual machine for executing programs written in PHP |