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
| name: Renovate | |
| on: | |
| schedule: | |
| # The "*" (#42, asterisk) character has special semantics in YAML, so this | |
| # string has to be quoted. | |
| - cron: '0/15 * * * *' | |
| jobs: | |
| renovate: |
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
| // This is free and unencumbered software released into the public domain. | |
| // Anyone is free to copy, modify, publish, use, compile, sell, or | |
| // distribute this software, either in source code form or as a compiled | |
| // binary, for any purpose, commercial or non-commercial, and by any | |
| // means. | |
| // In jurisdictions that recognize copyright laws, the author or authors | |
| // of this software dedicate any and all copyright interest in the | |
| // software to the public domain. We make this dedication for the benefit |
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
| // Update this value w/ the HTML you want to convert | |
| const htmlToConvert = `<div>Hello World</div>` | |
| // Below is the conversion script | |
| const indentation = " " | |
| const _voidElements = new Set([ | |
| 'area', | |
| 'base', | |
| 'br', |
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
| replace: XCTAssertNil\((.*)\) | |
| with: #expect($1 == nil) | |
| replace: XCTAssertNotNil\((.*)\) | |
| with: #expect($1 != nil) |
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
| [Unit] | |
| Description=Sway scaling daemon | |
| [Service] | |
| Environment=HOME=/home/rsmet/ | |
| ExecStart=/usr/bin/python /home/rsmet/.local/bin/sway-scaling-daemon.py | |
| Restart=always | |
| ExecStartPost=/bin/sleep 1 | |
| [Install] |
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
| [keys.normal] | |
| C-f = [":new", ":insert-output lf-pick", "split_selection_on_newline", "goto_file", "goto_last_modification", "goto_last_modified_file", ":buffer-close!", ":theme nord", ":theme default"] | |
| # replace the default after theme with the theme you use | |
| # open 1 with the open command (l and <left> to open) or more with (<space> to select) then quit | |
| # all opened files will be opened in helix |
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
| from django.utils.http import urlencode | |
| def reverse_querystring(view, urlconf=None, args=None, kwargs=None, current_app=None, query_kwargs=None): | |
| '''Custom reverse to handle query strings. | |
| Usage: | |
| reverse('app.views.my_view', kwargs={'pk': 123}, query_kwargs={'search': 'Bob'}) | |
| ''' | |
| base_url = reverse(view, urlconf=urlconf, args=args, kwargs=kwargs, current_app=current_app) | |
| if query_kwargs: | |
| return '{}?{}'.format(base_url, urlencode(query_kwargs)) |
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
| ########################################################################## | |
| # THE MICRO MONGODB+PYTHON BOOK | |
| # | |
| # A simple adaptation to Python + summary of | |
| # The Little MongoDB Book: https://github.com/karlseguin/the-little-mongodb-book | |
| # | |
| # javier arias losada | |
| # twitter: @javier_arilos | |
| # Usage suggestion: run line by line bu using pydemo project (https://github.com/pablito56/pydemo) |
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
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |