Skip to content

Instantly share code, notes, and snippets.

View sandagolcea's full-sized avatar
💭
learning Python frameworks ftw, because why not

sandagolcea sandagolcea

💭
learning Python frameworks ftw, because why not
View GitHub Profile
@sandagolcea
sandagolcea / swaggerApprovalStatus.json
Created January 15, 2019 14:25
swagger json with some sample approval statuese
This file has been truncated, but you can view the full file.
{
"swagger": "2.0",
"info": {
"description": "MBS Third Generation Service Layer",
"version": "1.0.0",
"title": "MOO Business Service API"
},
"basePath": "/api",
"schemes": ["https"],
"produces": ["application/json"],
@sandagolcea
sandagolcea / PR template
Last active November 2, 2020 23:19
Template for pull/merge requests
#### What does this PR do?
Short explanation of what this merge request does.
#### Where should the reviewer start?
- `file1.js` - changed this & that
- `file2.css` - other changes
#### How should this be manually tested?
- Go to page x
- Check: that you should see z
@sandagolcea
sandagolcea / paperclip.js
Last active March 2, 2018 10:01
paperclips fun
// *** clicking the button to create paper clips ***
const button = document.getElementById('btnMakePaperclip');
var createPaperclips = function(numberOfPaperclips) {
var button = document.getElementById('btnMakePaperclip');
var max = numberOfPaperclips || 100;
for (var i = 0 ; i < max ; i++) {
button.click();
}
}
@sandagolcea
sandagolcea / gettingStarted.md
Last active April 19, 2018 19:53
document with resources in order for getting started with coding
# These are my personal settings; I really like my command line and I like to have my shortcuts
# and my color coding schemes. I also keep cmd line hints for some commands, for ease-of-use.
# ! not everything will be relevant to you, please check what you're adding
# Use at your own risk.
export PATH="/usr/local/sbin:$PATH"
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
//basic pen
//HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src='https://wzrd.in/standalone/expect@latest'></script>
<script src='https://wzrd.in/standalone/deep-freeze@latest'></script>
alert(_.startCase('USER_NAME'));
urlList = [];
urlList = [...urlList, '33', '44', '55'];
urlList: _.remove(urlList, (url) => {return url === '44';});
alert(urlList);
React HOC stuff
http://www.bennadel.com/blog/2888-experimenting-with-higher-order-components-in-reactjs.htm
@sandagolcea
sandagolcea / GitCheatsheet.md
Last active November 19, 2015 00:46
git cheatsheet
- http://stackoverflow.com/questions/23521212/openam-how-to-direct-a-user-to-own-portal-log-in-page-instead-of-openam-log-in
- http://openam.forgerock.org/doc/bootstrap/dev-guide/#sec-custom-attr
- http://stackoverflow.com/questions/30839192/openam-cant-login-with-custom-authentication-module
-> https://github.com/ForgeRock/openam-auth-sample
Defining authentication services:
- https://backstage.forgerock.com/#!/docs/openam/12.0.0/admin-guide/chap-auth-services
Admin guide - I think setting up login pages?