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 function | |
| import ( | |
| "net/http" | |
| ) | |
| var mux = newMux() | |
| //F represents cloud function entry point | |
| func F(w http.ResponseWriter, r *http.Request) { |
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
| install: | |
| @export APP_SLUG=$(filter-out make install,$(MAKECMDGOALS)) ;\ | |
| docker-compose -f docker-compose.yml -p $$APP_SLUG build | |
| %: | |
| @: | |
| #### DYNAMIC DEMO START | |
| # make tester bob |
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 'package:flutter/material.dart'; | |
| /* MODEL packages */ | |
| import 'dart:async'; | |
| import 'dart:convert'; | |
| import 'package:http/http.dart' as http; | |
| /* BLoC packages */ | |
| import 'package:rxdart/rxdart.dart'; |
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 a | |
| import "fmt" | |
| type Sayer interface { | |
| Say() string | |
| } | |
| type Formal struct{} |
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 ( | |
| "log" | |
| "net/http" | |
| graphql "github.com/graph-gophers/graphql-go" | |
| "github.com/graph-gophers/graphql-go/relay" | |
| ) |
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
| var express = require('express'); | |
| var path = require('path'); | |
| var favicon = require('serve-favicon'); | |
| var logger = require('morgan'); | |
| var cookieParser = require('cookie-parser'); | |
| var bodyParser = require('body-parser'); | |
| var index = require('./routes/index'); | |
| var user = require('./routes/user'); | |
| var auth = require('./routes/auth'); |
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 React from "react"; | |
| import styled from "styled-components"; | |
| export default class Ov extends React.Component { | |
| render() { | |
| return ( | |
| <Autocomplete | |
| overrides={{ | |
| Hello: { | |
| props: { coucou: "coucou" } |
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
| /[?]?\: [a-z|A-Z]+.[\[\]]?[\ \=|\)]?/gim |
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
| const fs = require('fs'); | |
| const fetch = require('node-fetch'); // install node-fetch | |
| const path = require('path'); | |
| const btoa = function(str) { | |
| return Buffer.from(str).toString('base64'); | |
| }; | |
| //Use your Shufti Pro account client id and secret key | |
| const token = btoa("YOUR_CLIENT_ID:YOUR_SECRET_KEY"); //BASIC AUTH TOKEN |
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
| const cp = require("child_process"); | |
| const cmd = cp.spawn("sudo", ["-S", "ls", "-lh", "/usr"]); | |
| cmd.stdout.on("data", data => { | |
| console.log(`stdout: ${data}`); | |
| }); | |
| cmd.stderr.on("data", data => { | |
| console.log(`stderr: ${data}`); | |
| if (String(data).match(/Password:/i)) { |