Skip to content

Instantly share code, notes, and snippets.

View maxchehab's full-sized avatar
🐝
explaining think to sand

Max Chehab maxchehab

🐝
explaining think to sand
View GitHub Profile
@maxchehab
maxchehab / test.json
Created July 18, 2019 21:40
stripe intro w/ mutation
{
"data": {
"__schema": {
"directives": [
{
"name": "include",
"description": "Directs the executor to include this field or fragment only when the `if` argument is true."
},
{
"name": "skip",
import { Type } from '@nestjs/common';
import { ModuleMetadata } from '@nestjs/common/interfaces';
export declare type I18nLoadingType = 'BY_LANGUAGE' | 'BY_DOMAIN';
export interface I18nOptions {
path: string;
fallbackLanguage?: string;
}
export interface I18nOptionsFactory {
createI18nOptions(): Promise<I18nOptions> | I18nOptions;
}
import { Type } from '@nestjs/common';
import { ModuleMetadata } from '@nestjs/common/interfaces';
export declare type I18nLoadingType = 'BY_LANGUAGE' | 'BY_DOMAIN';
export interface I18nOptions {
path: string;
fallbackLanguage?: string;
}
export interface I18nOptionsFactory {
createI18nOptions(): Promise<I18nOptions> | I18nOptions;
}
;**********************************************************************************************
; Author: Maxwell Chehab
; Pre Lab 1: Data Conversions and Signed Numbers
; Date Created: September 20, 2018
; Last Modified:
; Description: this program will compute Convert A BCD number to xten and xunit place. Convert
; them into a binary number and perform a simple calculation
; Inputs: none
; Outputs: view the specified locations (0x20000000 to 0x20000005)
;**********************************************************************************************
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
package com.example.kathrinegibson.watercare;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.app.Activity;
import android.support.design.widget.FloatingActionButton;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
#include <iostream>
#include <cmath>
#include <ctime>
#include <cstdlib>
using namespace std;
void displayGameRules() {
cout << "Welcome to Pass the Pigs! Here are the rules. " << endl;
cout << "The player tosses two pigs, each can land in six positions: " << endl;
#include <iostream>
#include <cmath>
#include <ctime>
#include <cstdlib>
using namespace std;
void displayGameRules() {
import React from "react";
import docker from "docker-browser-console";
import websocket from "websocket-stream";
export default class Terminal extends React.Component {
constructor(props) {
super(props);
this.state = {
width: "0",
height: "0"
import React from "react";
import Article from "./Article";
import PropTypes from "prop-types";
import Link from "next/link";
import RedirectToLogin from "./RedirectToLogin";
import { FadeInDown } from "./animations";
class ArticleList extends React.Component {
static propTypes = {
articles: PropTypes.array