Skip to content

Instantly share code, notes, and snippets.

View arturmkrtchyan's full-sized avatar

Artur Mkrtchyan arturmkrtchyan

View GitHub Profile
<script>
/** this needs to be changed if block ids get changed score fields get changed **/
const blockMapping = {
'list-details7': {
'field1' : 'F.O.R. Score',
'field2' : 'Status FOR'
},
'list-details6': {
'field1' : 'High Score 4',
'field2' : 'Test 4 Status'
@arturmkrtchyan
arturmkrtchyan / ObjectVsStruct.java
Created January 6, 2015 21:07
Java Off/On Heap Struct/Object Creation
import sun.misc.Cleaner;
import sun.misc.Unsafe;
import sun.nio.ch.DirectBuffer;
import java.lang.reflect.Field;
import java.nio.ByteBuffer;
// How to run:
// struct: javac ObjectVsStruct.java && java ObjectVsStruct struct
// object: javac ObjectVsStruct.java && java ObjectVsStruct object
<script>
document.addEventListener("DOMContentLoaded", function () {
/* Intercept into Airtable call */
window['records'] = [];
$.ajaxSetup({
dataFilter: function (data, type) {
<style>
#pricing9584 .sw-pricing-column{ max-width: 18%; flex: 0 0 18%; text-align: center; padding: 16px 15px; box-sizing: border-box; } #pricing9584 .pricing-table .features:not(.buttons-row):hover{ background-color: #f3f4f8; } #pricing9584 .pricing-table .features{ align-items: baseline; } #pricing9584 .pricing-table { border-top: 1px solid #f3f4f8; padding: 30px 0; } #pricing9584 .pricing-header { margin-bottom: .83333333vw; } #pricing9584 .table-name{ font-weight: 500; } #pricing9584 .column--first{ max-width: 28%; flex: 0 0 28%; text-align: left; color: #1C2B41; font-size: 18px; padding: 10px 12px; } #pricing9584 .pricing-tier{ font-size: 18px; } #pricing9584 .pricing-title{ color: #1C2B41; position: relative; font-size: 1.16666667vw; line-height: 1.66666667vw; font-weight: 500; } #pricing9584 .sw-pricing-title--big{ font-size: 1.5vw; line-heig
{
"tables": [
{
"id": "tbl2g31JZOaP5v35E",
"name": "Jobs",
"primaryFieldId": "fldKWJFMfX27nTZAw",
"fields": [
{
"type": "singleLineText",
"id": "fldKWJFMfX27nTZAw",
<script>
document.addEventListener("DOMContentLoaded", function () {
const targetBaseId = 'appO7onHaqjgFdVvW';
const targetTableName = 'Button%20test';
const applicationId = 'b79530b9-83c5-41ca-801e-507d2b8e8fc5';
/* Intercept into Airtable call */
window['records'] = [];
$.ajaxSetup({
<style>
#sw-banner {
background-color: #69C3FF;
color: #181818;
width: 100%;
display: block;
padding-top: 8px;
padding-bottom: 8px;
-webkit-transition: background-color 200ms ease-in-out;
<script>
document.addEventListener("DOMContentLoaded", function() {
const category = getUrlParam('category');
if(category) {
const existCondition = setInterval(function() {
if ($('span[data-value="' + category.trim() + '"]').length) {
$('span[data-value="' + category.trim() + '"]').click();
clearInterval(existCondition);
}
}, 100);

part 1

<script>
document.addEventListener("DOMContentLoaded", function() {
    $('[id=sw-email-capture-submit-btn]').click(function() {
          if($('.sw-input-invalid').length) {
              return;
          }
<script>
    document.addEventListener("DOMContentLoaded", function() {
        $('.js-filter').eq(2).addClass('d-none');
        $('.js-filter').eq(3).addClass('d-none');

        $('.js-filter-option').click(function(){
            setTimeout(function(){
                let containsShoes = false;
                let containsJeansOrPants = false;