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
defaults write com.apple.screencapture location ~/Desktop/Screenshots/;killall SystemUIServer; |
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
<!DOCTYPE html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<meta charset="utf-8"> | |
<?php | |
//if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); | |
//wp_head(); | |
?> |
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
<a id="pdf-link" href="{src}" target="_blank"> | |
<span>Download PDF</span> | |
</a> | |
<style> | |
#pdf-link{ | |
background-color: #50575e; | |
color: #fff; | |
font-family: 'Open Sans',sans-serif; | |
font-weight: 400; |
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
var map = esri.Map("map_canvas3d"); |
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
Put Code In Function.php | |
function themeslug_theme_customizer( $wp_customize ) { | |
$wp_customize->add_section( 'themeslug_logo_section' , array( | |
'title' => __( 'Logo', 'themeslug' ), | |
'priority' => 30, | |
'description' => 'Upload a logo to replace the default site name and description in the header', | |
) ); | |
$wp_customize->add_setting( 'themeslug_logo' ); | |
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'themeslug_logo', array( |
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
<html lang="en-US"><head> | |
<meta charset="utf-8"> | |
</head><body class="page page-id-4484 page-parent page-child parent-pageid-4478 page-template-default logged-in admin-bar no-customize-support wpb-js-composer js-comp-ver-4.11.2.1 vc_responsive"> | |
<div class="page-container page-boxed"> | |
<div class="preloader"></div> | |
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
require 'sinatra' | |
require 'open-uri' | |
def staff | |
url = "https://egi.utah.edu/about/staff/?mode=quick" | |
text = URI.parse(url).read | |
output = "" | |
text.each_line do |line| |
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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script> | |
<div class="progress"></div> | |
<script> | |
console.log("hi"); | |
$.ajax({ | |
success: function(data){ | |
console.log(data); | |
// Do stuff with the returned file |
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
$.ajax({ | |
xhr: function() | |
{ | |
var xhr = new window.XMLHttpRequest(); | |
//Download progress | |
xhr.addEventListener("progress", function(evt){ | |
var percentComplete = evt.loaded / evt.total; | |
//Do something with download progress | |
console.log("down", percentComplete); | |
$('progress').attr("value", percentComplete * 100) |
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
<span id="status"></span> | |
<script> | |
var url = "/api/research.json"; | |
var num = "{num}"; | |
num = num.toUpperCase(); | |
jQuery.getJSON(url, getStatus); | |
function getStatus(data){ | |
jQuery("#status").text(data[num].status); |