Thank you for contributing code to Teo! Like many projects, we need a contributor license agreement from you before we can merge in your changes.You only need to fill out this agreement once. In brief, by submitting your code to the Teo project, you are granting us a right to use that code under the terms of this Agreement, including providing it to others. You are also certifying that you wrote it, and that you are allowed to license it to us. You are not giving up your copyright in your work. Contributor License Agreements are important because they define the chain of ownership of a piece of software. Some companies won't allow the use of free software without clear agreements around code ownership. That's why many open source projects collect similar agreements from contributors. Please read this document carefully before signing and keep a copy for your records. (You'll get an email confirmation when you electronically sign the CLA.) If you have questions about these terms, or if y
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
| import SwiftUI | |
| struct RibbonShapeTop: Shape { | |
| var extend: CGFloat = .s17 | |
| func path(in rect: CGRect) -> Path { | |
| Path { path in | |
| path.move(to: CGPoint(x: rect.minX, y: rect.minY)) | |
| path.addLine(to: CGPoint(x: rect.maxX - extend, y: rect.minY)) |
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
| app.setup(|teo: Teo| async { | |
| run_lapin(teo).unwrap(); | |
| Ok(()) | |
| })?; | |
| fn run_lapin(teo: Teo) -> LapinResult<()> { | |
| let addr = std::env::var("AMQP_ADDR").unwrap_or_else(|_| "amqp://127.0.0.1:5672/%2f".into()); | |
| tokio::spawn(async move { | |
| let conn = Connection::connect( | |
| &addr, |
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
| <style name="Theme.Transparent" parent="Theme.AppCompat"> | |
| <item name="android:windowIsTranslucent">true</item> | |
| <item name="android:windowBackground">@android:color/transparent</item> | |
| <item name="android:windowContentOverlay">@null</item> | |
| <item name="android:windowNoTitle">true</item> | |
| <item name="android:windowIsFloating">true</item> | |
| <item name="android:backgroundDimEnabled">false</item> | |
| <item name="android:windowAnimationStyle">@null</item> | |
| </style> |
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 main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "github.com/gorilla/mux" |
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
| unsafe fn ref_to_mut_ref<T>(reference: &T) -> &mut T { | |
| let const_ptr = reference as *const T; | |
| let mut_ptr = const_ptr as *mut T; | |
| &mut *mut_ptr | |
| } |
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
| import { css } from '@linaria/core' | |
| import React, { FC } from 'react' | |
| import { transformGreenEnd } from '../styles/theme' | |
| interface ToggleProps { | |
| isOn: boolean | |
| toggle?(on: boolean): void | |
| disabled?: boolean | |
| } |
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
| import { useState, useEffect, useReducer } from "react"; | |
| import { Cache } from "webpack"; | |
| const refreshers: {[key: string]: (() => void)[]} = {} | |
| interface QueryOptions<T> { | |
| initial?: T | |
| cache?: string | |
| dependencies?: any[] | |
| disabled?: boolean |
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
| db.users.aggregate([{ | |
| "$lookup": { | |
| "from": "favorites", | |
| "as": "products", | |
| "let": { | |
| "userId": "$_id" | |
| }, | |
| "pipeline": [{ | |
| "$match": { | |
| "$expr": { |
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
| @jsonclass( | |
| can_create=types.getop.isobj(types.this.fobj('todo_list').fval('owner')), | |
| can_update=types.getop.isobj(types.this.fval('owner')), | |
| can_delete=types.getop.isobj(types.this.fval('owner')), | |
| can_read=types.getop.isobj(types.this.fval('owner')) | |
| ) |
NewerOlder