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
locales = Set.new | |
stat = {} | |
projects = ['Android Register', 'Dashboard (New)', 'iOS Dashboard', 'iOS Register', 'IRF Forms', 'Public Web', 'Regulator Emails', 'solidshop', 'Help Center Articles', 'Payroll', 'Square / Web', 'Macro Texts'] | |
start_t = Time.current.beginning_of_year | |
end_t = start_t.end_of_month | |
while start_t < Time.current do | |
File.open("/app/shuttle/current/translations_stat_#{start_t.month}.csv", 'w') do |f| |
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
["U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T"] | |
["V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U"] | |
["W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V"] | |
["X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W"] | |
["Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X"] | |
["Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y"] | |
["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] | |
["B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", " |
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
tester+ 300828 0.6 3.7 1052368 144456 pts/15 Sl+ 22:22 0:02 | \_ node ./node_modules/karma/bin/karma start karma.ci.conf.js | |
tester+ 300835 0.2 1.7 599252 67112 pts/15 Sl+ 22:22 0:01 | \_ /opt/google/chrome/chrome --user-data-dir=/tmp/karma-49892036 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:2000/?id=49892036 | |
tester+ 300843 0.0 0.0 6460 388 pts/15 S+ 22:22 0:00 | \_ /opt/google/chrome/chrome-sandbox /opt/google/chrome/chrome --type=zygote --user-data-dir=/tmp/karma-49892036 | |
tester+ 300844 0.0 0.7 375808 29600 pts/15 S+ 22:22 0:00 | | \_ /opt/google/chrome/chrome --type=zygote --user-data-dir=/tmp/karma-49892036 | |
tester+ 300851 0.0 0.2 375808 8548 pts/15 S+ 22:22 0:00 | | \_ /opt/google/chrome/chrome --type=zygote --user-data-dir=/tmp/karma- |
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
tester+ 300828 0.6 3.7 1052368 144456 pts/15 Sl+ 22:22 0:02 | \_ node ./node_modules/karma/bin/karma start karma.ci.conf.js | |
tester+ 300835 0.2 1.7 599252 67112 pts/15 Sl+ 22:22 0:01 | \_ /opt/google/chrome/chrome --user-data-dir=/tmp/karma-49892036 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:2000/?id=49892036 | |
tester+ 300843 0.0 0.0 6460 388 pts/15 S+ 22:22 0:00 | \_ /opt/google/chrome/chrome-sandbox /opt/google/chrome/chrome --type=zygote --user-data-dir=/tmp/karma-49892036 | |
tester+ 300844 0.0 0.7 375808 29600 pts/15 S+ 22:22 0:00 | | \_ /opt/google/chrome/chrome --type=zygote --user-data-dir=/tmp/karma-49892036 | |
tester+ 300851 0.0 0.2 375808 8548 pts/15 S+ 22:22 0:00 | | \_ /opt/google/chrome/chrome --type=zygote --user-data-dir=/tmp/karma- |
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
var path = require('path'), | |
tags = [], | |
karmaConfig, files, sauceBrowsers; | |
// Base Karma configuration | |
karmaConfig = { | |
browserNoActivityTimeout: 600000, | |
browserDisconnectTolerance: 5, | |
// base path that will be used to resolve all patterns (eg. files, exclude) |
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
tester+ 300828 0.6 3.7 1052368 144456 pts/15 Sl+ 22:22 0:02 | \_ node ./node_modules/karma/bin/karma start karma.ci.conf.js | |
tester+ 300835 0.2 1.7 599252 67112 pts/15 Sl+ 22:22 0:01 | \_ /opt/google/chrome/chrome --user-data-dir=/tmp/karma-49892036 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:2000/?id=49892036 | |
tester+ 300843 0.0 0.0 6460 388 pts/15 S+ 22:22 0:00 | \_ /opt/google/chrome/chrome-sandbox /opt/google/chrome/chrome --type=zygote --user-data-dir=/tmp/karma-49892036 | |
tester+ 300844 0.0 0.7 375808 29600 pts/15 S+ 22:22 0:00 | | \_ /opt/google/chrome/chrome --type=zygote --user-data-dir=/tmp/karma-49892036 | |
tester+ 300851 0.0 0.2 375808 8548 pts/15 S+ 22:22 0:00 | | \_ /opt/google/chrome/chrome --type=zygote --user-data-dir=/tmp/karma- |
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
// 1 represents man and -1 represents woman | |
import java.util.HashMap; | |
public class Solution { | |
/* As we only care about the num of men and women in one group, and based on the fact that they are continuous, | |
* we can try add all numbers together with different start point. If at some point we find sum equals to 0, | |
* we have found one sub array that has equal number of men and women. The simple method implementation is below. | |
* With outer loop defining the start point and inner loop calculating current sum, we can keep looking for sum 0 |
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
%Solution of quasi-one-dimensional isentropic flow through a | |
%diverging-converging nozzle, by the explicit Mac Cormack finite difference method. | |
%Nozzle geometry | |
dx=0.1; | |
x=0:dx:3; | |
A=(1+2.2*(x.^2-3*x+2.25))'; | |
cfl=0.5; %Courant number | |
gama=1.4; %Specific heat ratio | |
N=length(x);%Number of grid points |
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
public ArrayList<String> generateParenthesis(int n) { | |
String left = ""; | |
String right = ""; | |
ArrayList<String> res = new ArrayList<String>(); | |
String oneSolu = ""; | |
for (int i=0; i<n; i++) { | |
left += "("; | |
right += ")"; | |
} | |