Skip to content

Instantly share code, notes, and snippets.

View kylerberry's full-sized avatar

Kyler Berry kylerberry

View GitHub Profile
count=10000
while [ $count -gt 0 ]
do
say 'Kyler'
sleep 60;
let count-=1
done

Keybase proof

I hereby claim:

  • I am kylerberry on github.
  • I am kylerberry (https://keybase.io/kylerberry) on keybase.
  • I have a public key ASC3nvvVptdj2D0Jc-isKnbiVjpgxLmdUM2ual8eCGkvOwo

To claim this, I am signing this object:

#nest1 #nest2 #nest3 #nest4 .my-custom-button {
/* my styles */
}
<div id=”nest1">
<div id=”nest2">
<div id=”nest3">
<div id=”nest4">
<div class=”wistia_embed wistia_async_hnft7yehcp”></div>
</div>
</div>
</div>
</div>
Wistia.plugin(‘rewind’, function(video, options) {
// make a button
var button = document.createElement(‘div’);
button.setAttribute(‘class’, ‘w-control’);
button.innerHTML = ‘Rewind’;
button.style.display = ‘block’;
// on click, rewind the video
button.addEventListener(‘click’, function(e) {
video.time(video.time() — 10);
Wistia.plugin(‘rewind’, function(video, customOptions) {
// make a button
var button = document.createElement(‘div’);
button.setAttribute(‘class’,’w-control’);
button.innerHTML = ‘Rewind’;
 
// on click, rewind the video
button.addEventListener(‘click’, function(e) {
video.time(video.time() — 10);
});
window._wq = window._wq || [];
_wq.push({
id: ‘hnft7yehcp’,
options: {
playerColor: ‘27B95E’,
volumeControl: false,
}
});
window._wq = window._wq || [];
_wq.push({
id: ‘hnft7yehcp’,
options: {
playerColor: ‘27B95E’,
volumeControl: false,
plugin: {
‘rewind’ : {
customOptions: {},
src: ‘http://localhost:8000/scripts/rewind_plugin.js'
@kylerberry
kylerberry / gist:5109102
Created March 7, 2013 16:02
jQuery: position:fixed Android Fix
<script>
$(document).ready( function() {
var fixedElement = $('.fixedElement');
$(window).resize(function(){
$(menu).remove();
$('body').append(fixedElement);
});
});
</script>
@kylerberry
kylerberry / Responsive Navigation
Last active December 14, 2015 09:39
Responsive Navigation: dropdown at small-screens, horizontal at larger screens
<!--
Based on code and examples by Terris Kremer
http://themetaq.com/articles/responsive-toggle-menu
-->
<!----------------------- html ----------------------->
<!-- //for wordpress navigation -->
<nav>
<h2 class="toggle-menu">Navigation<span></span></h2>
<?php wp_nav_menu(array('menu' =>'your_menu', 'menu_class' => 'navigation', 'container' => 'false')); ?>