This file contains hidden or 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
    
  
  
    
  | #!/bin/sh | |
| # requires gdrive to work: https://github.com/gdrive-org/gdrive, see also: https://github.com/gdrive-org/gdrive/issues/426 | |
| # requires xclip to work | |
| # requires inotifywait to work | |
| path=~/Pictures # local folder where screenshot images are automatically stored | |
| target_folder_id=your_folder_id # target google drive parent folder id | |
| gdrive_path=~/gdrive # gdrive executeable location | 
  
    
      This file contains hidden or 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
    
  
  
    
  | -module(split_list.erl). | |
| -export([split_at/2]). | |
| % splits list at delimiter and groups them | |
| % split_list:split_at([hello, '---', ende, '---', okay], '---'). | |
| % result: [[hello],[ende],[okay]] | |
| split_at(L, D)-> split_at(L, D, [], []). | |
| split_at([], _, [], G)-> reverse(G); | |
| split_at([], _D, L, G)-> reverse(L) ++ [reverse(G)]; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // passed data | |
| "{"paymentSources":{"creditCardInfo":[{"creditCard":{"expirationYear":"2020","expirationMonth":"01","cardNumber":"4111111111111111","securityCode":"312","cardType":""}}]},"firstName":"Erwin","lastName":"Flaming","shopperCurrency":"USD"}" | |
| // curl getinfo | |
| array(26) { | |
| ["url"]=> | |
| string(51) "https://ws.bluesnap.com/services/2/vaulted-shoppers" | |
| ["content_type"]=> | |
| string(16) "application/json" | |
| ["http_code"]=> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | ifeq ($(OS),Windows_NT) | |
| SEPARATOR=; | |
| else | |
| SEPARATOR=: | |
| endif | |
| MAD := ./mad | |
| VM := vm.args | |
| SYS := sys.config | |
| PLT_NAME := ~/.n2o_dialyzer.plt | 
  
    
      This file contains hidden or 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
    
  
  
    
  | /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // create fake page called "chat-room" | |
| // modify function and variable names with "ABCD" to whatever you like | |
| // modify variable $fakepage_ABCD_url to the fake URL you require | |
| add_filter('the_posts','fakepage_ABCD_detect',-10); | |
| function fakepage_ABCD_detect($posts){ | |
| global $wp; | |
| global $wp_query; | |
| global $fakepage_ABCD_detect; // used to stop double loading |