This file contains 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 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 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 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 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 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 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] }) |