racl101 + syntax   129

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:

var template = {{ template | json }};

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
« earlier      
per page:    204080120160

related tags

addon  alter  and  another  ansible  argument  array  arrow  assert  asset  assetbuilder  assets  autocomplete  aux  Bash  basics  batch  become  best  bestpractice  bigint  blade  blocks  blog  branch  break  bug  build  builder  case  caveat  change  changes  character  cheatsheet  check  checker  checkout  class  classes  code  codeblocks  color  command  commandline  commands  commenting  comparison  compatible  component  compose  conditional  conditionally  conf  config  configuration  connection  const  constant  consumed  continue  control  convert  cool  copy  create  cron  cronjob  crontab  css  csv  customer  cycle  data  database  declaration  default  delete  designers  detection  development  devotee  diff  digitalocean  divisible  docker  docker-compose  documentation  drop  dump  ecmascript  ecommerce  editor  ee1  ee2  else  Elseif  elsif  email  emmet  engine  env  environment  envoy  error  es6  es2015  example  expander  explanation  export  exporting  expressionengine  expressions  external  facade  file  filters  fix  flow  for  foreach  format  forum  free  from  function  generator  gettingstarted  git  github  global  gnu  gnutools  gotcha  grants  grid  guide  hash  helper  heredoc  highligher  highlight  highlighter  highlighting  host  howto  html  html5  htmlspecialchars  hyperlink  hyphen  IDE  if  image  import  importing  index  indexes  information  instance  integer  interval  introduction  issue  iteration  javascript  jinja2  js  jshint  json  jsx  jump  key  keyboard  keys  language  laracasts  laravel  Laravel4  laravel5  layout  learning  legacy  less  limit  line  lint  linter  linux  liquid  local  logic  logical  login  loop  macos  macosx  mail  man  manipulation  manpage  manual  markdown  markup  mdn  mediumint  module  modulo  mozilla  multiple  mustachio  mysql  mysql5  mysql5.7  mysqladmin  namespacing  navigate  nginx  not  number  object  objects  of  on  oop  operator  operators  options  or  overview  package  packagecontrol  page  panel  parameters  password  paste  pattern  perch  perl  php  php5  php5.4  php7  phpdocumentor  phpstorm  phpunit  pip  plugin  Plugins  positional  postgresql  postmark  postmarkapp  preg  preprocessor  programming  project  proviso  ps  push  pygments  python  query  range  reactjs  reference  reference.  regex  regular  remainder  remote  Removal  repl  require  requirements  requiring  resource  response  return  roots  Ruby  ruby1.9  Ruby2  SAge  sass  scheme  scope  Script  scripting  security  sed  Server  servers  Service  set  Shell  shopify  short  shortcuts  show  single  Spf  split  sql  sqlalchemy  sqlite3  stackoverflow  standard  start  statement  string  sublime  sublimetext  sublimetext3  SUBSTRING  summary  support  switch  symbol  syntax  syntaxhighlighter  system  table  tag  tags  task  template  templates  terminal  test  testing  theme  themes  three  to  tolearn  tool  tools  toread  totry  tounderstand  tracking  troubleshoot  troubleshooting  truncate  turn-off  tutorial  type  unicode  unit  university  unix  Unverified  update  upstream  url  use  user  v3  validation  validator  value  variables  version  view  vim  vimdiff  vimrc  virtualhost  vue  vue2  vuejs  w3chools  when  wiki  wildbit  window  wordpress  workflow  working  wp  yaml  yield 

Copy this bookmark: