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
| void main() { | |
| final aList = <String>[]; | |
| aList.addAll(['a','b']); | |
| print('#1: $aList'); | |
| aList.addAll(null); | |
| print('#2: $aList'); | |
| } |
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
| version: '2' | |
| services: | |
| redmine: | |
| image: redmine | |
| ports: | |
| - 8080:3000 | |
| environment: | |
| REDMINE_DB_POSTGRES: db |
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
| <link rel="import" href="../paper-tabs/paper-tabs.html"> | |
| <link rel="import" href="../paper-tabs/paper-tab.html"> | |
| <link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
| <polymer-element name="my-element"> |
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/bash | |
| # If the process is already running, you can use the following: | |
| PID=`pgrep processname` | |
| renice -n 19 $PID | |
| ionice -c 3 -p $PID | |
| # For new processes, just chain them together | |
| nice -n 19 ionice -c 3 processname |
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 python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| HTTP server that provides a web interface to run "tail" on a file, | |
| like the Unix command. | |
| This is a standalone script. No external dependencies required. | |
| How to invoke: |
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 python | |
| # SPECIFICATION: | |
| # | |
| # check_sudoku() determines whether its argument is a valid Sudoku | |
| # grid. It can handle grids that are completely filled in, and also | |
| # grids that hold some empty cells where the player has not yet | |
| # written numbers. | |
| # | |
| # First, your code must do some sanity checking to make sure that its |