- Do not create or modify code unless explicitly directed to take action. Clear directives include verbs such as "fix", "implement", "add", "remove", "modify", "refactor", or similar instructions. Questions, suggestions, or design discussions (e.g., "should this...", "what if we...", "I think we should...") are not permission to modify code. In those cases, provide analysis and recommendations only unless explicitly told to implement changes.
- Explicit broad directives (e.g., "Improve this module", "Refactor this module") are sufficient permission to proceed. Keep changes scoped to the referenced area.
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 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
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
| # first open the file in read/write mode | |
| with h5py.File('/path/to/file.h5', 'r+') as gait_h5: | |
| # loop through all the videos. Here we assume current video is: | |
| # LL1-B2B/2018-08-22_SPD/LL1-2_003890-F-AX11-5.28571428571429-43291-2-K1808155.avi | |
| # ... somehow get your residual values into a numpy array for current video. This has to be | |
| # done for all variables you're correcting for. Here using step_width as an example. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 { | |
| Component, | |
| ContentChildren, | |
| Input, | |
| QueryList, | |
| TemplateRef, | |
| } from '@angular/core'; | |
| @Component({ | |
| selector: 'pxa-tree-table', |
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 function echos "true" when the first argument string starts | |
| # with the second | |
| function startswith() { | |
| if [[ "${1[1, ${#2}]}" == "$2" ]] | |
| then | |
| echo 'true' | |
| fi | |
| } | |
| # scan for and process .dirconf properties files where each lines is a |
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 | |
| # | |
| # chkconfig: 345 95 05 | |
| # description: celery daemon configured to work with the haploqa application | |
| # If we're invoked via SysV-style runlevel scripts we need to follow the | |
| # link from rcX.d before working out the script name. | |
| if [[ `dirname $0` == /etc/rc*.d ]]; then | |
| target="$(readlink $0)" | |
| else |
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
| DEBUG = True | |
| PORT = 5000 | |
| #MONGO_SERVER = 'localhost' | |
| MONGO_SERVER = 'xyz.ppp.org' | |
| MONGO_PORT = 27017 | |
| MONGO_DATABASE = 'xyz_db' | |
| # the following values enumerate all possible shapes you can use for 'level_shapes' in | |
| # the WEB_APP_CONF below | |
| CIRCLE = "circle" |
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 itertools | |
| import math | |
| import numpy as np | |
| from scipy import linalg | |
| import matplotlib.pyplot as plt | |
| import matplotlib as mpl | |
| import pylab | |
| from sklearn import mixture |
NewerOlder