Skip to content

Instantly share code, notes, and snippets.

@mybluedog24
mybluedog24 / test.geojson
Created April 5, 2019 18:14
test_geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mybluedog24
mybluedog24 / index.html
Created March 15, 2019 22:01
Popup Login & Signup with jQuery
<div class="container">
<h1>Popup Login & Signup with jQuery</h1>
<a id="modal_trigger" href="#modal" class="btn">Click here to Login or register</a>
<div id="modal" class="popupContainer" style="display:none;">
<header class="popupHeader">
<span class="header_title">Login</span>
<span class="modal_close"><i class="fa fa-times"></i></span>
</header>
@mybluedog24
mybluedog24 / index.html
Created March 15, 2019 22:00
modal login/signup
<!-- Button trigger modal -->
<div class="container">
<br>
<center>
<button class="btn btn-primary btn-lg" href="#signup" data-toggle="modal" data-target=".log-sign">Sign In/Register</button>
</center>
<br>
@mybluedog24
mybluedog24 / get_layer_packages.sh
Last active March 7, 2019 03:52
These are the required packages for Lambda layer for connecting AWS Elasticsearch.
#!/bin/bash
export PKG_DIR="python"
rm -rf ${PKG_DIR} && mkdir -p ${PKG_DIR}
docker run --rm -v $(pwd):/foo -w /foo lambci/lambda:build-python3.6 \
pip install -r requirements.txt -t ${PKG_DIR}
@mybluedog24
mybluedog24 / buildspec.yml
Created February 28, 2019 03:58 — forked from marcelog/buildspec.yml
Example for buildspec file for Amazon CodeBuild and Amazon CodePipeline to achieve Continuous Integration and Continuous Delivery for a ServerLess project
version: 0.1
phases:
install:
commands:
- printenv
- npm install
build:
commands:
- npm run build
@mybluedog24
mybluedog24 / google-img-resize.mdown
Created August 23, 2018 17:08
Google’s authentication-less on-the-fly image resizing service

Google's authentication-less on-the-fly image resizing service

I found it while poking around the Google+ HTML. Jotting down some notes felt like a good idea, so here goes. If you know more about this API, let me know, please!

(Word of warning: I spent ~30 minutes on both my experimentation and this here write-up, so it might not be the most thought-provoking, brilliant thing you read today.)

@mybluedog24
mybluedog24 / 1
Last active July 19, 2016 23:54
test 300 files limit
1
@mybluedog24
mybluedog24 / file_content_limit.txt
Last active July 20, 2016 08:15
Testing gist limit
documentation: https://developer.github.com/v3/gists/
Description: The Gist API provides up to one megabyte of content for each file in the gist. Each file returned
for a gist through the API has a key called truncated. If truncated is true, the file is too large
and only a portion of the contents were returned in content.
Notes: 1. The example in documentation shows that each file has key "truncated", but that's no such key in
https://api.github.com/users/justdionysus/gists. So this file is going to test the content limit.
TESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTEST
TESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTEST
TESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTEST