Skip to content

Instantly share code, notes, and snippets.

View Adobe-Android's full-sized avatar

David Brown Adobe-Android

View GitHub Profile
@Adobe-Android
Adobe-Android / amazon-rekognition.md
Last active May 31, 2023 09:53 — forked from alexcasalboni/amazon-rekognition.md
Amazon Rekognition - Python Code Samples

Amazon Rekognition - Python Code Samples

  1. Labels Detection
  2. Faces Detection
  3. Faces Comparison
  4. Faces Indexing
  5. Faces Search
  6. Moderation Detection
@Adobe-Android
Adobe-Android / shift.js
Created August 2, 2018 20:13
A code snippet that rotates all elements in an array n many times.
let firstArr = [
1,
2,
3,
4,
5
]
// shift 1: 23451
// shift 2: 34512
@Adobe-Android
Adobe-Android / fortune_cookie.c
Last active May 10, 2019 15:12
A gist collection of C concepts
@Adobe-Android
Adobe-Android / Employee.cs
Created February 1, 2019 03:37
Demo for creating a new object/type and creating an instance method on that class
namespace Class_Instance_Method
{
class Employee
{
public string Id { get; set; }
public string FullName { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
public string doWork()
{
@Adobe-Android
Adobe-Android / App.config
Last active February 12, 2019 00:26
C#-FTP - Connect to a server over FTPS, get a list of files in a specified directory, and rename those files
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<!--Replace with your .NET version here-->
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<appSettings>
<add key="FilePath" value="/sourcePath/"/>
<add key="DestinationPath" value="/destinationPath/"/>
<add key="UserName" value="user"/>
@Adobe-Android
Adobe-Android / str_reverse.c
Created February 10, 2019 01:52
C string reversal
int main()
{
char s[20], r[20];
int begin, end, count = 0;
printf("Input a string\n");
scanf("%s", s);
// Calculating string length
while (s[count] != '\0')
@Adobe-Android
Adobe-Android / read_file.c
Last active February 26, 2019 00:33
Read in a file and handle errors and write to a file and handle errors
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define bufSize 1024
int main(int argc, char const *argv[])
{
FILE *in;
char buf[bufSize];
@Adobe-Android
Adobe-Android / Interface.cs
Last active September 17, 2020 17:48
Employee interface and implementation (in one file for convenience)
using System;
interface IEmployee
{
string Id { get; set; }
string FullName { get; set; }
string Email { get; set; }
string Phone { get; set; }
string Company { get; }
}
@Adobe-Android
Adobe-Android / node.js
Created April 15, 2019 04:30
Some useful node.js commands
#!/usr/bin/env node
const {node: nodeVersion, v8: v8Version, openssl: sslVersion, unicode: uniVersion} = process.versions;
console.log("Node.js version:", nodeVersion);
console.log("V8 version:", v8Version);
console.log("OpenSSL version:", sslVersion);
console.log("Unicode support:", uniVersion);
// console.log(process.versions);
@Adobe-Android
Adobe-Android / .zshrc
Created April 15, 2019 04:53
Zshrc file
# Path to your oh-my-zsh installation.
export ZSH=/home/vm/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# POWERLEVEL9K_MODE='nerdfont-complete'
# ZSH_THEME="powerlevel9k/powerlevel9k"
ZSH_THEME="robbyrussell"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)