- QCalendarWidget
- QCheckBox
- QDateEdit
- QDateTimeEdit
- QLabel
- QDial
- QFileDialog
- QLineEdit
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
name: Run PR checks | |
on: | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
checks: | |
name: Run checks |
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
# Instructions | |
# ============ | |
# 1. mkdir qjs && cd qjs | |
# 2. git clone https://github.com/bellard/quickjs.git quickjs | |
# 3. Copy this file as CMakeLists.txt | |
# 4. mkdir build && cd build | |
# 5. cmake .. && make | |
# 6. You can now find the binaries qjs and qjsc in the build folder. | |
cmake_minimum_required(VERSION 3.9...3.20) |
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
# # Installation | |
# 1. Copy this gkejoboperator.py in your dag folder. | |
# | |
# 2. For this custom operator to be used in the composer env, we need to install these python modules | |
# | |
# // requirements.txt | |
# kubernetes==11.0.0 | |
# pyyaml==5.3.1 | |
# | |
# 3. Add a connection in airflow for the operator to use for connecting to gke cluster. |
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
// How to use it ? | |
// =============== | |
// Step 1: Create a custom codepush bundle | |
// ---------------------------------------- | |
// react-native bundle --assets-dest out --bundle-output out/main.jsbundle --dev false --platform ios --entry-file index.ts | |
// Then just compress the contents of out dir into a single zip file. for example: out.zip | |
// Step 2: Create a remotePackage json object | |
// ------------------------------------------ |
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 React from "react"; | |
import { registerAsWebComponent } from "react-webcomponentify"; | |
const MyComplexComponent = props => ( | |
<div> | |
Kinda complex component 😂 | |
<p>{props.text}</p> | |
<div>{props.children}</div> | |
</div> | |
); |
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 React from "react"; | |
import { registerAsWebComponent } from "react-webcomponentify"; | |
export class Input extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { buttonText: "" }; | |
this.onInputEnter = this.onInputEnter.bind(this); | |
} | |
onInputEnter(evt) { |
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
const express = require('express'); | |
const hello = require('./src/ansi/animations/hello'); | |
const PORT = process.env.PORT || 3000; | |
const app = express(); | |
// simple hello route | |
app.get('/hello', async (req, res, next) => { | |
const userAgent = req.headers['user-agent']; // checking the useragent |
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
const express = require('express'); | |
const { Readable } = require('stream'); | |
// This is the special ANSI code to tell terminals to clear the screen | |
const PAGE_BREAK = '\033[2J\033[H'; | |
// This function gets the current date in string format along | |
// with a page break on top. | |
// Note that you would need to add a new line for the terminal to | |
// interpret it. That is `hello` will not work while `hello\n` will. |
NewerOlder