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 tensorflow as tf | |
| from tensorflow.keras import layers, Model, optimizers, initializers, constraints | |
| from tensorflow.keras import backend as k | |
| from tensorflow.keras.layers import Dense, Conv2D, Input, LeakyReLU, Reshape, Flatten | |
| from tensorflow.keras.layers import AveragePooling2D, UpSampling2D | |
| from tensorflow.keras.constraints import max_norm | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import glob | |
| import os |
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
| # Create a new predictor | |
| tide = new ICBResponsePredictor() | |
| # There are two processes the predictor models to come up with a ICB response score: | |
| # 1) Level of T-cell dysfunction in tumors with high CTL levels. Tumors with high CTL levels but also high T-cell dysfunction are shown to have worse responses to ICB. | |
| # 2) Effects of certain cell types on CTL infiltration level; why certain tumors are low-CTL in the first place. Low-CTL tumors are shown to have a worse response to ICB. | |
| #### FIRST PROCESS #### | |
| # Get tumor expression datasets from the following databases and filter them |
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
| var height = 300; | |
| var width = 300; | |
| var max_iters = 50; | |
| console.log("Creating arrays"); | |
| var pixels = createArray(height, width); | |
| var palette = createArray(max_iters); | |
| function drawMandelPix(sX, sY) { | |
| var xC = 0.0; |
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
| using System; | |
| namespace LuhnAlgo | |
| { | |
| class IMEIChecker | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine(CheckIMEI(980293730373763)); // "true" | |
| Console.WriteLine(CheckIMEI(980293730373764)); // "false" because check digit is not correct | |
| Console.ReadKey(); // pause before exiting |
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
| (function() { | |
| var f5_cspm = { | |
| f5_p: 'BDNINOGGMDOLHFCOJAANDEJOKLPHMMBONGPBGOGCAJFBGBLCNAFONCMEODJAAHKJPNMGCACOAKDOOLOIAJDPBBPMJCFFCEBFDOLLDCOONKDIPFNKNNFOOFCIBBGFCBHA', | |
| setCharAt: function(str, index, chr) { | |
| if (index > str.length - 1) return str; | |
| return str.substr(0, index) + chr + str.substr(index + 1); | |
| }, | |
| get_byte: function(str, i) { | |
| var s = (i / 16) | 0; | |
| i = (i & 15); |
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
| package com.bcchack.ap; | |
| import static java.lang.System.out; | |
| import java.io.File; | |
| import java.io.FileNotFoundException; | |
| import java.io.UnsupportedEncodingException; | |
| import java.security.MessageDigest; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; |
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
| package com.bcchack.ap; | |
| public class MatrixMultiply { | |
| public static int[][] multiplyMatrices(int[][] a, int[][] b) | |
| { | |
| int[][] ret = new int[a.length][b[0].length]; | |
| for (int row = 0; row < a.length; row++) | |
| { | |
| for (int col = 0; col < b[0].length; col++) | |
| { |
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
| package com.bcchack.ap; | |
| import static java.lang.System.out; | |
| import java.io.File; | |
| import java.io.FileNotFoundException; | |
| import java.util.ArrayList; | |
| import java.util.Scanner; | |
| public class TesterMatrices { | |
| //static int[][] m1 = {{1, 2, -2, 0}, {-3, 4, 7, 2}, {6, 0, 3, 1}}; | |
| //static int[][] m2 = {{-1, 3}, {0, 9}, {1, -11}, {4, -5}}; | |
| public static void main(String[] args) throws FileNotFoundException |
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 static java.lang.System.out; | |
| import java.awt.Color; | |
| import java.awt.Dimension; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Random; | |
| import java.util.Scanner; | |
| import javax.swing.BoxLayout; |
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
| using System; | |
| using System.Collections.Generic; | |
| class Program | |
| { | |
| static readonly char[] alpha = "abcdefghijklmnopqrstuvwxyz".ToCharArray(); | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine(CeasarEncrypt("yz", 1)); | |
| Console.ReadKey(); | |
| } |