Skip to content

Instantly share code, notes, and snippets.

View tanerochris's full-sized avatar

tanerochris tanerochris

View GitHub Profile
/**
* Path: dynamoDB/getReportCompletionStatus/index.js
*/
const AWS = require('aws-sdk');
const ddb = new AWS.DynamoDB.DocumentClient({
region: 'eu-central-1'
});
/**
@tanerochris
tanerochris / passwordGenerator.js
Last active June 4, 2019 16:31
code snippet to generate password
/**
* Function
* @param {Number} seed length of sequence of characters generated
* @returns {String} sequence of Capital letters
*/
let generateCaps = (seed) => {
// randaomly select letters withing ascii characters
var string = '';
for (let i = 0; i <= seed; i++) {
// select randomNumber
@tanerochris
tanerochris / clickatell.js
Created November 12, 2016 17:07
click a tell CORS problem
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
</head>
<body ng-app="myApp">
<button ng-click="click()">Send Message</button>
<script type="text/javascript">
angular.module("myApp",[]).controller("testCntr",function($scope,$http){
var authorization = "Bearer "+ "zu.5_21RmO1Sl5h1RRiGDZVEy.tjD8D5u9UneijpFBeMTrNE7SI990wfrLSR6pT6kD9fLG0vww3eBs";
#include<iostream>
#include<sys/types.h>
#include<netinet/in.h>
#include<sys/socket.h>
#include<netdb.h>
#include<unistd.h>
#include<stdlib.h>
#include<errno.h>
#include<string.h>
#define MAXHOSTNAME 256
@tanerochris
tanerochris / simpleCalculator.js
Last active August 29, 2015 14:25
Simple Calculator
<!DOCTYPE Html5>
<html>
<head>
<meta charset="utf-8" />
<style type="text/css" >
input[type="text"],button{
width :100%;
}
table{
width :40%;
@tanerochris
tanerochris / countWords.c
Created March 23, 2015 12:03
Counts the frequency of words in an input file and prints the result to an output file.Code makes use of binary search algorithm.
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
#define SIZE 30
typedef struct node WORD;
struct node {
char *words;
int count;
@tanerochris
tanerochris / CARD_Preview.html
Created March 21, 2015 16:59
Bone101 Tutorial
<p><br></p>
@tanerochris
tanerochris / CARD_Preview.html
Created March 20, 2015 17:38
Bone101 Tutorial
<p><br></p>
@tanerochris
tanerochris / CARD_Preview.html
Last active August 29, 2015 14:17
Bone101 Tutorial
<p>7977987979797</p>
@tanerochris
tanerochris / CARD_0.html
Last active August 29, 2015 14:17 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
<h3>
Build and execute instructions</h3><div><img src="http://beagleboard.org/static/uploads/LEDs.PNG" style="width: 337px;"><br></div><div><ul style="color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px;"><li>Run the example code of the next card and observe USR3 blinking.</li><li>Alter the frequency and re-run the example.</li></ul></div>