Skip to content

Instantly share code, notes, and snippets.

View yashwanth2804's full-sized avatar
🎯
Focusing

kambala yashwanth yashwanth2804

🎯
Focusing
View GitHub Profile

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

Starter

Starter is the simplest possible hook: it just accepts all transactions and logs that it is running.

to test:

  • in the develop pane, compile starter.c
  • in the deploy pane, deploy it to Alice account
  • set up payment transaction from Alice to Bob
  • run it and see in the debug stream 'Accept.c: Called.'
:root{
--primary-color: red;
}
Dataset<Row> ff = spark.read()
.option("inferSchema",true)
.option("header", "true")
.csv("/home/hasura/Desktop/SparkData/emp.csv");
Dataset<Row> ff1 = ff;
//ff.join(ff1, ff.col("empid").equalTo(ff1.col("mid"))).show();
ff.as("a")
package spark.Movies;
import java.io.Serializable;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.util.AccumulatorV2;
public class Accumulators {
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
Logger.getLogger("org").setLevel(Level.OFF);
SparkConf conf = new SparkConf().setAppName("map").setMaster("local");
JavaSparkContext sc = new JavaSparkContext(conf);
import static org.apache.spark.sql.functions.*;
import org.apache.spark.sql.expressions.UserDefinedFunction;
StructField [] sf1 = new StructField[] {
DataTypes.createStructField("uid",DataTypes.IntegerType, true),
DataTypes.createStructField("mid",DataTypes.IntegerType,true),
DataTypes.createStructField("rating",DataTypes.IntegerType, true),
DataTypes.createStructField("time",DataTypes.IntegerType, true),
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@yashwanth2804
yashwanth2804 / MOngodb
Created January 23, 2019 03:15
mongodb import and querys
./mongoimport --db dbname --collection coll --type csv --headerline --file path/restaurantsa9126b3.csv
Aggregate
await Restaurants
.aggregate([
{
@yashwanth2804
yashwanth2804 / me
Last active December 1, 2018 08:35
(moneyspent) => {
// me
return BTC_balanace-= moneyspent;
}