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 code is fork from https://gist.github.com/oliveratgithub/ | |
| -- Open in AppleScript Editor and save as Application | |
| -- ------------------------------------------------------------ | |
| --this is required to break the filename into pieces (separate name and extension) | |
| set text item delimiters to "." | |
| tell application "Finder" | |
| set all_files to every item of (choose file with prompt "Choose the Files you'd like to rename:" with multiple selections allowed) as list | |
| display dialog "New file name:" default answer "" | |
| set new_name to text returned of result | |
| --now we start looping through all selected files. 'index' is our counter that we initially set to 1 and then count up with every file. |
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
| import { Pipe, PipeTransform } from '@angular/core'; | |
| import * as format from 'date-fns/format'; | |
| @Pipe({ | |
| name: 'dateFnsFormat' | |
| }) | |
| export class DateFnsFormatPipe implements PipeTransform { | |
| transform(value, args?) { | |
| return format(value, args); |
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
| #!/usr/bin/env bash | |
| # Hook to make sure that no commit message line is lower then 10 characters | |
| while read line; do | |
| # Skip comments | |
| if [ "${line:0:1}" == "#" ]; then | |
| continue | |
| fi | |
| if [ ${#line} -le 10 ]; then |
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
| <button class="js-slide-toggle__btn">toggle</button> | |
| <div class="js-slide-toggle__content"> | |
| Nunc nec neque. In turpis. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Aenean tellus metus, bibendum sed, posuere ac, mattis non, nunc. In auctor lobortis lacus. | |
| Etiam sit amet orci eget eros faucibus tincidunt. Proin faucibus arcu quis ante. Sed aliquam ultrices mauris. Aenean viverra rhoncus pede. Donec interdum, metus et hendrerit aliquet, dolor diam sagittis ligula, eget egestas libero turpis vel mi. | |
| </div> |
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
| {"lastUpload":"2020-06-08T01:23:04.722Z","extensionVersion":"v3.4.3"} |
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
| https://github.com/samdemaeyer/codenames-pictures/raw/master/public/images/cards/card-0.jpg | |
| https://github.com/samdemaeyer/codenames-pictures/raw/master/public/images/cards/card-1.jpg | |
| https://github.com/samdemaeyer/codenames-pictures/raw/master/public/images/cards/card-10.jpg | |
| https://github.com/samdemaeyer/codenames-pictures/raw/master/public/images/cards/card-100.jpg | |
| https://github.com/samdemaeyer/codenames-pictures/raw/master/public/images/cards/card-101.jpg | |
| https://github.com/samdemaeyer/codenames-pictures/raw/master/public/images/cards/card-102.jpg | |
| https://github.com/samdemaeyer/codenames-pictures/raw/master/public/images/cards/card-103.jpg | |
| https://github.com/samdemaeyer/codenames-pictures/raw/master/public/images/cards/card-104.jpg | |
| https://github.com/samdemaeyer/codenames-pictures/raw/master/public/images/cards/card-105.jpg | |
| https://github.com/samdemaeyer/codenames-pictures/raw/master/public/images/cards/card-106.jpg |
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
| class Reversi extends Table | |
| { | |
| ////////////////////////////////////////////////////////////////////////////// | |
| //////////// Utility functions (functions used everywhere) | |
| //////////// | |
| // Get the list of returned disc when "player" we play at this place ("x", "y"), | |
| // or a void array if no disc is returned (invalid move) | |
| function getTurnedOverDiscs( $x, $y, $player, $board ) |
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
| .game { | |
| $majorsImp: 'Fireplace1', 'Fireplace2', 'CookingHearth1', 'CookingHearth2', 'ClayOven', 'StoneOven', 'Joinery', 'Pottery', 'Basket', 'Well'; | |
| @each $mId in $majorsImp { | |
| $i: index($majorsImp, $mId); | |
| &[data-id='Major_#{$mId}'] { | |
| .card-icon { | |
| background-position-x: (($i - 1) % 5) * 100% / 4; | |
| background-position-y: (($i - 1 - ($i - 1) % 5) / 5) * 100%; | |
| } |