recentpopularlog in

racl101 : syntax   125

« earlier  
How to check if a number is divisible by another number in Shopify - Shopify Tips
Good example showing how to get the remainder (modulo division) in a shopify template using Liquid. Useful for doing smart grid layouts.
blog  tutorial  howto  example  divisible  check  number  remainder  modulo  guide  reference  shopify  liquid  syntax  theme  development  grid  layout 
august 2018 by racl101
Ecommerce University | Shopify - using if statements within js.liquid files - Shopify Design
This forum contains a good explanation of why certain liquid template keywords like: {{ template }} do not return what you expect in .js.liquid files. So don't use it to try to detect the template from within the .js.liquid files. Instead, in the theme.liquid template, in the head tag do something like this:

<script>
var template = {{ template | json }};
</script>

and then use that variable in your JavaScripts that you include externally, like so:

if(template === 'index'){
console.log('homepage loaded');
}
shopify  ecommerce  university  forum  guide  reference  explanation  css  javascript  assets  template  detection  liquid  syntax  caveat  proviso  toread  tolearn  tounderstand 
august 2018 by racl101
Ansible/Yaml -- conditionally become another user - Stack Overflow
You can use this to conditionally become another user in an Ansible task. If interest is the fact that you can use Python conditional syntax to conditionally set task options.
ansible  task  yaml  howto  example  conditionally  conditional  become  another  user  python  syntax  set  options  guide  reference 
july 2018 by racl101
Shopify Liquid REPL
Looks promising for testing out basic Liquid data types, variable assignment and control flow and outputting variables.
tool  shopify  liquid  repl  development  testing  syntax 
june 2018 by racl101
ECMAScript 6 modules: the final syntax
I need to read this and understand this. It explains how exporting several functions within a given JavaScript file and importing them into another works. It discusses the ES6 / ES2015 export / import syntax.
blog  tutorial  es6  ecmascript  es2015  syntax  module  importing  exporting  import  export  require  requiring  toread  tolearn  tounderstand  guide  reference 
june 2018 by racl101
Cleanly Defining Multiple Envoy Servers
This is a bug for Envoy as of the version that installs when Laravel 5.4 was out in 2017. Refer to the question itself for info about this bug.

TLDR: when listing multiple servers with an array, use a one liner.
laracasts  forum  howto  troubleshoot  envoy  multiple  servers  bug  line  single  syntax  fix  guide  reference. 
december 2017 by racl101
barryvdh/laravel-ide-helper: Laravel IDE Helper
Nice tool to install a file to let PHPStorm recognize and autocomplete Laravel Facades.
phpstorm  LAravel  Laravel4  IDE  autocomplete  Tool  Github  Laravel5  Syntax  helper  facade 
january 2017 by racl101
The Bash Hackers Wiki [Bash Hackers Wiki]
Really great source to learn about Bash scripting. Very in depth.
Syntax  Tutorial  tounderstand  scripting  ReferencE  Howto  Shell  Guide  Bash  Tolearn  totry  Wiki 
december 2016 by racl101
Parameter expansion [Bash Hackers Wiki]
Explains this pattern: ${MYSTRING#* } which for strings removes the first word from a string of words but in a string it pops and returns the first element from an array.
Guide  Array  Howto  manipulation  Tutorial  Removal  scripting  Bash  Shell  Wiki  String  ReferencE  Syntax  SUBSTRING 
december 2016 by racl101
minimaxir/copy-syntax-highlight-osx
Cool tool that installs a workflow that shows up under 'Services' menu (on right mouse click) and allows you to do things such as selecting code syntax from a webpage, like a github page, and then paste that code as formatted, highlighted code onto programs like Apple Pages, Keynote, Microsoft Word, Photoshop,
highlight  Tool  workflow  paste  Github  macosx  Syntax  copy 
november 2015 by racl101
« earlier      
per page:    204080120160

Copy this bookmark:





to read