This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import urllib2 | |
from base64 import b64encode | |
data = json.loads(open('app_params.json', 'r').read()) | |
a10_api_server = data['a10_api_server'] | |
provider = data['provider'] | |
tenant = data['tenant'] | |
a10_user = data['a10_user'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import urllib2 | |
from base64 import b64encode | |
data = json.loads(open('app_params.json', 'r').read()) | |
a10_api_server = data['a10_api_server'] | |
provider = data['provider'] | |
tenant = data['tenant'] | |
a10_user = data['a10_user'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import urllib2 | |
from base64 import b64encode | |
data = json.loads(open('app_params.json', 'r').read()) | |
a10_api_server = data['a10_api_server'] | |
provider = data['provider'] | |
tenant = data['tenant'] | |
a10_user = data['a10_user'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import urllib2 | |
from base64 import b64encode | |
a10_api_server = 'https://api.a10networks.com/api/v2' | |
def _get_session_token(): | |
a10_user ='user@example.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tile-ssimg { width: 50px; height: 50px; } | |
.tile_1 {background-position: 0px 0px;} | |
.tile_2 {background-position: -50px 0px;} | |
.tile_3 {background-position: -100px 0px;} | |
.tile_4 {background-position: -150px 0px;} | |
.tile_5 {background-position: 0px -50px;} | |
.tile_6 {background-position: -50px -50px;} | |
.tile_7 {background-position: -100px -50px;} | |
.tile_8 {background-position: -150px -50px;} | |
.tile_9 {background-position: 0px -100px;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# returns a shuffeled list of numbers from 1 to the given number | |
### | |
get_random_list = (t) -> | |
r_list = [] | |
while r_list.length < t | |
n = Math.round(Math.random() * 100) | |
r_list.push n if n not in r_list and n in [1..t] | |
return r_list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FeedView extends Backbone.View | |
events: | |
"click .show_details" : "show_prod" | |
show_prod: (e) => | |
window.aprox_scroll_y = e.pageY - e.screenY | |
popup_top = (screen.height / 2) + window.aprox_scroll_y | |
popup_top = 251 if popup_top < 251 ## Have some minimum value | |
$("#prod_popup").modal().css('top', popup_top + 'px') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onmessage = (e) => | |
if e.origin == ss_mi.server | |
document.getElementById('ssmi_sc_iframe').style.height = e.data + 'px' |