Search
new [^\(](null, ([^,]+), ("[^"]+").?(?:\r)
Replace
[$2] = $0z
Against
| // As described in https://stackoverflow.com/q/26162902/84369 | |
| public ActionResult Index() | |
| { | |
| var sketches = db.Sketches.Include(p => p.Board); | |
| // Serializer settings | |
| var settings = new JsonSerializerSettings | |
| { | |
| ContractResolver = new CustomResolver(), | |
| PreserveReferencesHandling = PreserveReferencesHandling.None, |
| // From stackoverflow and adapted to unusure it makes sense with our data | |
| // -- https://stackoverflow.com/questions/38725038/c-sharp-how-to-verify-signature-on-jwt-token | |
| void Main() | |
| { | |
| var jwt = "some-jwt"; | |
| var segments = jwt.Split('.'); | |
| var decoded = segments.Select(s => System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(s))); | |
| Python 2.7.16 (v2.7.16:413a49145e, Mar 4 2019, 01:37:19) [MSC v.1500 64 bit (AMD64)] on win32 | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> from datetime import datetime, timedelta | |
| # Store start | |
| >>> start = datetime.now() | |
| # Get timespan by subtracting start from now | |
| >>> elapsed = datetime.now() - start |
| // Add non-existing bar to page | |
| let buttonPanel = `<div><div class="landing-filters" style="display: flex; | |
| align-items: baseline;"><h2 style="font-size: 17px; margin-right: 10px">Filament Diameter:</h2> | |
| <div class="button-group"><button class="filament-button filament-175-button" onclick="showItems('1.75mm')">1.75mm</button><button class="filament-button filament-300-button" onclick="showItems('2.85mm')">2.85mm</button></div></div></div>`; | |
| let newItem = $('<div>').addClass('.product-collections-header'); | |
| $('.main').prepend(newItem); | |
| newItem.html(buttonPanel); |
| def count_upper_words(str): | |
| words = str.split(' '); | |
| print('\n\n---- %s ----' % str) | |
| return sum([word.isupper() for word in words]) | |
| print(count_upper_words('Fast')) | |
| print(count_upper_words('SLOW')) | |
| print(count_upper_words('first MIDDLE Last')) |
| def capital_chars(word): | |
| return [c.isupper() for c in word] | |
| def analyze(str): | |
| has_words = ' ' in str | |
| if has_words: | |
| words = str.split(' '); | |
| for word in words: |
| import os | |
| from os import path | |
| def import_settings(file_path): | |
| with open(file_path) as gcode_file: | |
| all_lines = gcode_file.readlines() | |
| # Filter to comments with equals | |
| comments = [comment for comment in all_lines if comment.startswith('; ') and len(comment.split('=')) == 2] |
| import os | |
| from os import path | |
| def import_settings(file_path): | |
| with open(file_path) as gcode_file: | |
| all_lines = gcode_file.readlines() | |
| # Filter to comments with equals | |
| comments = [comment for comment in all_lines if comment.startswith('; ') and len(comment.split('=')) == 2] |
| // https://octicons.github.com/ | |
| jQuery('.js-icon-item').each(function(f) { | |
| var el = $(this); | |
| el.attr('title', el.attr('data-name').replace('octicon-', '')); | |
| }); | |
Search
new [^\(](null, ([^,]+), ("[^"]+").?(?:\r)
Replace
[$2] = $0z
Against