This file contains hidden or 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
// 1 2 3 4 5 6 7 8 9 | |
// 3456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 |
This file contains hidden or 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
func getLoggerNoTimestamps() Logger { | |
return log.New(os.Stderr, "", 0) | |
} | |
This file contains hidden or 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 logging | |
import subprocess | |
def lambda_handler(event, context): | |
# Probably get the script name from an environment variable or event... | |
script = "bashscript.sh" | |
log = logging.getLogger("lambda-logger") | |
log.setLevel(logging.INFO) |
This file contains hidden or 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
#!/usr/bin/python | |
from mininet.topo import Topo | |
from mininet.net import Mininet | |
from mininet.node import Controller, RemoteController | |
from mininet.cli import CLI | |
from mininet.log import setLogLevel | |
class SimpleTopo(Topo): |
This file contains hidden or 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
/** | |
* Contact form 7 - Redirect to a specific page based on the value of a form | |
* field. In this specific example I created a drop down menu item and gave | |
* it an id of 'select-menu', I also created . | |
*/ | |
function cf7_redirect() { | |
// Set the base url for contact-form-7 | |
var url = document.referrer; |
This file contains hidden or 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
<script> | |
function onSuccess(numUnread) { | |
alert('You have ' + numUnread + ' messages'); | |
} | |
function onFailure(error) { | |
alert(error.message); | |
} | |
This file contains hidden or 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
@mixin zoomInDown( $args ) | |
{ | |
-webkit-animation: zoomInDown $args; | |
-moz-animation: zoomInDown $args; | |
animation: zoomInDown $args; | |
} | |
@mixin zoomOutDown( $args ) | |
{ | |
-webkit-animation: zoomOutDown $args; |
This file contains hidden or 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
/* | |
* We need to add our query variables | |
*/ | |
add_filter( 'query_vars', 'mb_register_variables' ); | |
function mb_register_variables( $qv ) | |
{ | |
$qv[] = 'Badge'; | |
$qv[] = 'Username'; | |
$qv[] = 'Password'; | |
return $qv; |