I hereby claim:
- I am ajithpanneerselvam on github.
- I am turbofish (https://keybase.io/turbofish) on keybase.
- I have a public key ASBzMPJbVWXgXZ0u_d94VfK_1aHBY_yIeVa0WBFSzF9wJAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const wasm = import('./pkg'); | |
wasm | |
.then(m => m.greet('World!')) | |
.catch(console.error); |
use wasm_bindgen::prelude::*; | |
#[wasm_bindgen] | |
extern "C" { | |
fn alert(s: &str); | |
} | |
#[wasm_bindgen] | |
pub fn greet(name: &str) { | |
alert(&format!("Hello, {}!", name)); |
00000000 00 61 73 6d 01 00 00 00 01 86 80 80 80 00 01 60 |.asm...........`| | |
00000010 01 7f 01 7f 03 82 80 80 80 00 01 00 04 84 80 80 |................| | |
00000020 80 00 01 70 00 00 05 83 80 80 80 00 01 00 01 06 |...p............| | |
00000030 81 80 80 80 00 00 07 90 80 80 80 00 02 06 6d 65 |..............me| | |
00000040 6d 6f 72 79 02 00 03 61 64 64 00 00 0a 8d 80 80 |mory...add......| | |
00000050 80 00 01 87 80 80 80 00 00 20 00 41 2a 6a 0b |......... .A*j.| | |
0000005f |
int add(int num) { | |
return num + 42; | |
} |
const createQuestionGroups = (questionFlow) => { | |
const itemTypeQuestion = 'question' | |
const itemTypeBranch = 'branch' | |
const questionGroups = []; | |
const itemsCount = questionFlow.length; | |
let questionGroupCount = 1; | |
let i = 0; |
package main | |
import ( | |
"fmt" | |
"os/exec" | |
"strings" | |
"sync" | |
) | |
func exe_cmd(cmd string, wg *sync.WaitGroup) { |
func determineRouteInterface(serverAddr string) error { | |
var ip net.IP | |
if ip = net.ParseIP(serverAddr); ip == nil { | |
return fmt.Errorf("error as non-ip target %s is passed", serverAddr) | |
} | |
router, err := routing.New() | |
if err != nil { | |
return errors.Wrap(err, "error while instantiating routing object") | |
} |
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
"path/filepath" | |
"strconv" |
#include<iostream> | |
#include<stdlib.h> | |
using namespace std; | |
int main(){ | |
int i=0,n_process,*processes,*waitingTime,*turnAroundTime,averageWaitingTime, averageTurnAroundTime; | |
cin>>n_process; | |
//Dynamic memory allocation |