Skip to content

Instantly share code, notes, and snippets.

jimmycliff obonyo obonyojimmy

  • Kenya
Block or report user

Report or block obonyojimmy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
obonyojimmy / keyboardcapture.go
Last active Feb 17, 2020
go lang keyboard capture
View keyboardcapture.go
package main
import (
//~ "time"
View initial-sync-data.js
function fullSync(page = 1) {
let open ="books", 1);
// Set up the database schema
open.onsuccess = evt => {
let db = open.result;
fullSyncPage(db, 1);
View jquery-datatables-webpack
Here's how to make jQuery DataTables work with npm and webpack. This is the simplest way I found to do it.
See the previous revision of this gist for a way to do it with forcing AMD to be disabled if you need that.
Install DT core: npm install
Install a DT style: npm install
Then to initialize DT in your app, do this in your main entry point:
// you can use import or require
import dt from '';
obonyojimmy / cognito.yaml
Created Oct 14, 2019 — forked from singledigit/cognito.yaml
Create a Cognito Authentication Backend via CloudFormation
View cognito.yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: Cognito Stack
Type: String
Description: Unique Auth Name for Cognito Resources
# Creates a role that allows Cognito to send SNS messages
obonyojimmy / active-window.go
Created Jan 1, 2017
Go lang get current foreground window
View active-window.go
package main
import (
var (
obonyojimmy / elastic-beanstalk-cfn.yaml
Last active May 18, 2019
elastic beanstalk cloudformation template
View elastic-beanstalk-cfn.yaml
Outputs: {}
AWSTemplateFormatVersion: 2010-09-09
NoEcho: 'true'
Type: String
Description: WebServer EC2 instance type family
Default: t1
ConstraintDescription: must be Boolean.
obonyojimmy / fix-npm.config
Created May 13, 2019 — forked from nnnikolay/fix-npm.config
Not the final AWS Elastic Beanstalk deployment for NodeJS. Why not the final? some parts are missing or not tested, like configuration changes. Currently it has been tested for application deployment only.
View fix-npm.config
mode: "000775"
owner: root
group: users
content: |
# enable extra logs
set -xe
# Defines variables for use by the other scripts below.
obonyojimmy / react-cognito-auth-js.js
Created May 8, 2019 — forked from gabeweaver/react-cognito-auth-js.js
React + Cognito User Pools + Cognito Identity JS Example
View react-cognito-auth-js.js
This example was built using standard create-react-app out of the box with no modifications or ejections
to the underlying scripts.
In this example, i'm using Google as a social provider configured within the Cognito User Pool.
Each step also represents a file, so you can see how I've chosen to organize can do it however
you'd like so long as you follow the basic flow (which may or may not be the official way....but its what I found that works.
The docs are pretty horrible)
View aws-cloudformation-template-for-nodejs-v0.6.json
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CloudFormation Sample Template for Node.js application. **WARNING** This template creates an Amazon EC2 instance. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters": {
"InstanceType": {
"Description": "EC2 instance type",
"Type": "String",
"Default": "t1.micro",
obonyojimmy / CMakeLists.txt
Created Mar 9, 2019 — forked from roxlu/CMakeLists.txt
CMake example that shows how you can build Freetype2 with support for Harfbuzz and Harfbuzz with support for Freetype2. This example uses ExternalProject which is the standard way to include external dependencies. Note that we have to patch Freetype2 and Harfbuzz because their CMakelists are not fully CMake compatible (still depend on pkg-config…
View CMakeLists.txt
# This CMake file will build Freetype and Harfbuzz as external
# projects. We follow the build description as described here:
# So,
# first we build Freetype2 w/o Harfbuzz, then we build Harfbuzz with
# freetype support after which we rebuild Freetype2 again.
# Both CMake files of Freetype2 and Harfbuzz are depending on
# pkg-config to find the dependencies for both projects. I've
# included a patch for Freetype2 and Harfbuzz which allows you to
# build Freetype2 and Harbuzz with pure CMake features. So I removed
You can’t perform that action at this time.