Skip to content

Instantly share code, notes, and snippets.

View JamesHusband's full-sized avatar
:octocat:

James Husband JamesHusband

:octocat:
View GitHub Profile
function conversionRedirect() {
var goData = document.getElementById( 'go-data' );
if( goData ){
var redirect = goData.dataset.redirect;
window.setTimeout( window.location = redirect, 3000 );
}
};
<script src="//platform.twitter.com/oct.js" type="text/javascript"></script>
<script type="text/javascript">
twttr.conversion.trackPid('l4nor');
</script>
<noscript>
<img height="1" width="1" style="display:none;" alt="" src="https://analytics.twitter.com/i/adsct?txn_id=l4nor&p_id=Twitter" />
<img height="1" width="1" style="display:none;" alt="" src="//t.co/i/adsct?txn_id=l4nor&p_id=Twitter" />
</noscript>
body { padding: 0px; margin: 0px; }
#content-wrapper {
width: 1000px;
padding-left: 20px;
padding-right: 20px;
padding-bottom:30px;
margin: 0 auto;
}
<?php
/*
Accepts an associative array containing the file owner name for each file name.
Returns an associative array containing an array of file names for each owner name, in any order.
For example, for associative array ["Input.txt" => "Randy", "Code.py" => "Stan", "Output.txt" => "Randy"]
the groupByOwners function should return ["Randy" => ["Input.txt", "Output.txt"], "Stan" => ["Code.py"]].
*/
class FileOwners {
var_dump ($data);
array (size=12)
'status' => string '200' (length=3)
'resultText' => string 'You have successfully updated the contact list' (length=46)
'list_id' => string '25578' (length=5)
'list_name' => string 'LSM TEST LIST' (length=13)
<ol class="ol1">
<li style="list-style-type: none;">
<ol class="ol1">
<li style="list-style-type: none;">
<ol class="ol1">
<li class="li6"></li>
<li class="li6"></li>
<li class="li6"></li>
<li class="li6"></li>
<li class="li6"></li>
function testme() {
$classes = array(
'test',
'test2',
);
$class_array = '';
foreach ( $classes as $class ) {
$class_array .= $class . ' ';
}
function lsmwp_post_exclusion() {
$posts = lsmwp_excluded_posts();
$result = array();
var_dump( $posts );
foreach ( $posts as $post ) {
$res = lsmwp_post_limiter( $post['postId'], $post['in'], $post['count'] );
if ( $res ) {
$result[] = $res;
dist >
style.min.css (this is the compiled css from style.scss)
src >
style.scss (includes all module.sccs file from child folders)
base >
_variables.scss
/* MAIN CSS */
body {
background: url('https://lsm-public-bucket.s3.amazonaws.com/sfsg/creativesuites/dracular/desktop/bg_desktop.png');
background-size: cover;
}
#wrapper {
width: 1040px;
padding-left: 20px;
padding-right: 20px;