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
package main | |
import ( | |
"fmt" | |
"math" | |
"os" | |
"sync" | |
"text/tabwriter" | |
"time" | |
) |
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
const gulp = require('gulp') | |
const awspublish = require('gulp-awspublish') | |
const awspublishRouter = require("gulp-awspublish-router"); | |
const cloudfront = require('gulp-cloudfront-invalidate-aws-publish') | |
const parallelize = require('concurrent-transform') | |
// https://docs.aws.amazon.com/cli/latest/userguide/cli-environment.html | |
const config = { | |
// Required |
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
export SENDPOST_API_KEY='YOUR_API_KEY' |
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
Show hidden characters
{ | |
"target": "terminus_exec", // "terminus_open" - if using this you dont need cancel, simply close tab and watch this: https://youtu.be/etIJMVIvVgg | |
"cancel": "terminus_cancel_build", | |
"focus": false, | |
"timeit": true, | |
"shell_cmd": "g++ -std=c++17 -Wshadow -Wall -o \"${file_path}/${file_base_name}.o\" \"${file}\" -O2 -Wno-unused-result", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c, source.c++", |
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
#include<stdlib.h> | |
#include<stdio.h> | |
#include<sys/time.h> | |
#define n 4096 | |
#define THRESHOLD 32 | |
double A[n][n]; | |
double B[n][n]; | |
double C[n][n]; |
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
#include<stdlib.h> | |
#include<stdio.h> | |
#include<sys/time.h> | |
#define n 4096 | |
double A[n][n]; | |
double B[n][n]; | |
double C[n][n]; |
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
import java.util.Random; | |
public class MatrixMultiply { | |
static int n = 4096; | |
static double[][] A = new double[n][n]; | |
static double[][] B = new double[n][n]; | |
static double[][] C = new double[n][n]; | |
public static void main(String[] args) { | |
Random random = new Random(); |
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
import sys, random | |
from time import time | |
n = 4096 | |
A = [[random.random() | |
for row in range(n)] | |
for col in range(n)] | |
B = [[random.random() |
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
//g++ 7.4.0 | |
/* | |
* Min Sparse Table Example | |
* | |
* @author Karn, mail@karngyan.com | |
*/ | |
#include <bits/stdc++.h> |
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
/* | |
Author: @karngyan | |
Team: BlundersPride | |
*/ | |
#include<bits/stdc++.h> |
NewerOlder