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 addon opens one or many audios in an editor (the default is Audacity). | |
It supports 3 modes to choose which audios it opens. The config is entered in a text box and the searching mode will automatically detected. | |
If users enter "first_field,second_field,third_field", this addon will open every audios in "first_field" and "second_field" | |
If users enter "1,2:1", this addon will opens the first and second audios in the front card and the first audio in the back card. | |
If users enter "<div id=“editable”>[sound: … ]</div>" and tick the regex box, it will search audios that are surrounded by <div id="editable"> tag. | |
On main window -> only show change path button | |
On review mode, only show search fields | |
First, implement search box | |
Which information do we need to save? |
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
# -*- coding: utf-8 -*- | |
"""Anki add-on which adds "Notes in CSV format" option of Export desc dialog. | |
Copyright (c) 2019 Alex Chekunkov, Dmitry Gordeev | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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 | |
xrandr --output HDMI-0 --mode 1920x1080 --fb 7680x2160 --pos 0x0 --scale 2x2 --rotate normal \ | |
--output eDP-1-1 --primary --mode 3840x2160 --scale 1x1 --pos 3840x0 --rotate normal |
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
watchman watch-del-all | |
rm -rf node_modules | |
rm -rf package-lock.json | |
rm -rf ios/build | |
rm -rf $TMPDIR/react-* | |
npm cache clear --force -s | |
npm cache verify | |
cd ios | |
pod deintegrate |
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
<?php | |
/** | |
* This code retrieves course data from an external API and displays it in the user's | |
* My Account area. A merchant has noticed that there's a delay when loading the page. | |
* | |
* 1) What changes would you suggest to reduce or remove that delay? | |
* 2) Is there any other code changes that you would make? | |
*/ | |
public function add_my_courses_section() { |
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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: cantgetnosleep | |
* Date: 7/30/15 | |
* Time: 4:50 PM | |
*/ | |
$chars = array(); |
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
/* | |
* Automatically triggers subprojects' eclipse task when | |
* eclipse task is run on root project | |
*/ | |
tasks.eclipse.dependsOn{ | |
subprojects { Project subproj -> | |
subproj.tasks.eclipse | |
} | |
} |
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
/* | |
* Here we iterate over the directories found in the root directory of the | |
* main project, and if the subdirectory contains a build.gradle file, it | |
* is added to the main project as a subproject. | |
*/ | |
Closure discoverSubprojects = { | |
def list = [] | |
rootDir.eachDir(){ dir -> | |
dir.eachFileMatch({it == 'build.gradle'}, { list += [dir.name] }) |