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
@echo off | |
:::::::::::::::::::::::::::: | |
set "params=Problem_with_elevating_UAC_for_Administrator_Privileges"&if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" | |
fsutil dirty query %systemdrive% >nul 2>&1 && goto :GotPrivileges | |
:: The following test is to avoid infinite looping if elevating UAC for Administrator Privileges failed | |
If "%1"=="%params%" (echo Elevating UAC for Administrator Privileges failed&echo Right click on the script and select 'Run as administrator'&echo Press any key to exit...&pause>nul 2>&1&exit) | |
cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%params%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs"&exit | |
:GotPrivileges | |
:::::::::::::::::::::::::::: | |
color 1F |
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({ | |
url: 'https://data-asg.goldprice.org/dbXRates/USD', | |
dataType: 'text', | |
success: function(response) { | |
var prices = JSON.parse(response).items[0]; | |
var goldp = prices.xauPrice; | |
var goldx = prices.chgXau; | |
var golds = (prices.xauPrice > prices.xauClose) ? 'up' : 'down'; | |
var silverp = prices.xagPrice; | |
var silverx = prices.chgXag; |
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
$colors: ("blue", #0000ff, "green", #008000, "orange", #fca644); | |
@for $index from 1 through length($colors){ | |
div:nth-child(#{length($colors)}n + #{$index}) { | |
color: unquote(nth($colors, $index)); | |
} | |
} | |
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
// DYNAMIC SLICK DOTS | |
function dynamic_slick_dots(slickItem, slickLimit){ | |
if($(slickItem).length < slickLimit){ | |
$(slickItem).parents('.slick-slider.slick-dotted').find('ul.slick-dots').hide(); | |
} | |
} | |
// DYNAMIC SLICK DOTS | |
dynamic_slick_dots('.slick_slide:not(.slick-cloned)', 4); |
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
<?php namespace Anomaly\FormsModule; | |
use Anomaly\FormsModule\Form\Contract\FormRepositoryInterface; | |
use Anomaly\Streams\Platform\Addon\Plugin\Plugin; | |
use Anomaly\Streams\Platform\Assignment\Contract\AssignmentInterface; | |
use Anomaly\Streams\Platform\Entry\Contract\EntryInterface; | |
use Anomaly\Streams\Platform\Support\Decorator; | |
use Anomaly\Streams\Platform\Support\Presenter; | |
/** |
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
<form method="POST" action="/our/url"> | |
<textarea name="input" onChange="save(event)" /> | |
</form> | |
<script language="javascript"> | |
function save(event) { | |
var request = new XMLHttpRequest(); | |
request.open(event.target.form.method, event.target.form.action); | |
request.send(new FormData(event.target.form)); | |
} |
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
// Setting Value | |
{{ setting_value('streams::field_slug', config_get('streams::distribution.field_slug')) }} | |
// Content View | |
{{ page.content.render | raw}} | |
// Content Exerpt View | |
{{ page.content | striptags | slice(0, 120) }} | |
// Multiple File View |
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
.grid_wrap { | |
width: 100%; | |
max-width: 100%; | |
display: grid; | |
margin: 0 auto; | |
grid-template-columns: repeat(auto-fill, minmax(25%, 1fr)); | |
grid-auto-rows: 1fr; | |
grid-auto-flow: row dense; | |
grid-gap: 10px; | |
counter-reset: boxes; |
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://cdn.jsdelivr.net/npm/signature_pad@2.3.2/dist/signature_pad.min.js"></script> | |
<div class="signature-wrap"> | |
// Add Form field signature_base_64 and assign it to the form, Field type must be WYSIWYG | |
<input type="hidden" class="signature_base_64" name="signature_base_64" value="" /> | |
<div id="signature-pad"> | |
<div class="custom-signature-pad--body"> | |
<canvas id="custom-signature-pad" width="398" height="160" style="touch-action: none;"></canvas> | |
</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
$(document).ready(function(){ | |
$.ajax({ | |
url:"https://www.instagram.com/{username}/channel/?__a=1", | |
type:'get', | |
success:function(response){ | |
posts = response.graphql.user.edge_owner_to_timeline_media.edges; | |
posts_html = ''; | |
for(var i=0;i<8;i++){ | |
url = posts[i].node.display_url; | |
post_shortcode = posts[i].node.shortcode; |
NewerOlder