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 <bits/stdc++.h> | |
using namespace std; | |
void multiplyMatrix(int F[2][2], int M[2][2]); | |
void powerMatrix(int F[2][2], int n); | |
int fibonacci(int n) | |
{ | |
int F[2][2] = {{1,1},{1,0}}; | |
if (n == 0) | |
return 0; | |
powerMatrix(F, n-1); |
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
from functools import cmp_to_key | |
def sort_cmp(elem1, elem2): | |
if len(elem1) > len(elem2): | |
return -1 | |
elif len(elem1) < len(elem2): | |
return 1 | |
else: | |
if elem1 > elem2: | |
return -1 | |
else: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Add GeoJSON layer | CARTO</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta charset="UTF-8"> | |
<meta name="robots" content="noindex"> | |
<script src="https://libs.cartocdn.com/carto-vl/v1.4.4/carto-vl.min.js"></script> | |
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v1.0.0/mapbox-gl.js"></script> |
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
from sqlalchemy import create_engine | |
engine = create_engine('sqlite:///:memory:', echo=True) | |
# engine = create_engine("mysql://scott:tiger@hostname/dbname", encoding='latin1', echo=True) | |
# engine = create_engine("postgresql://scott:tiger@localhost/test") | |
from sqlalchemy.ext.declarative import declarative_base | |
Base = declarative_base() | |
from sqlalchemy import Column, Integer, String | |
class User(Base): | |
__tablename__ = 'users' |
We can't make this file beautiful and searchable because it's too large.
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
_etl_created_at,_etl_updated_at,aggregate_timestamp,hex_id,order_count,sum_cost,mean_cost,min_value_cost,max_value_cost,percentile_25th_cost,percentile_50th_cost,percentile_75th_cost,percentile_99th_cost,standard_deviation_cost | |
2020-03-12 12:22:1584015765,2020-03-12 12:22:1584015765,2020-03-10 00:00:1583798400,883ca96501fffff,1,311.0,311.0,311.0,311.0,311.0,311.0,311.0,311.0,0.0 | |
2020-03-12 12:22:1584015765,2020-03-12 12:22:1584015765,2020-03-10 00:00:1583798400,883ca96503fffff,1,1806.0,1806.0,1806.0,1806.0,1806.0,1806.0,1806.0,1806.0,0.0 | |
2020-03-12 12:22:1584015765,2020-03-12 12:22:1584015765,2020-03-10 00:00:1583798400,883ca96507fffff,1,2851.0,2851.0,2851.0,2851.0,2851.0,2851.0,2851.0,2851.0,0.0 | |
2020-03-12 12:22:1584015765,2020-03-12 12:22:1584015765,2020-03-10 00:00:1583798400,883ca96513fffff,1,655.0,655.0,655.0,655.0,655.0,655.0,655.0,655.0,0.0 | |
2020-03-12 12:22:1584015765,2020-03-12 12:22:1584015765,2020-03-10 00:00:1583798400,883ca96515fffff,1,755.0,755.0,755.0,755.0,755.0,755.0,755.0,755.0,0.0 | |
2020-03-12 |
We can't make this file beautiful and searchable because it's too large.
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
hex_id,total_session_count | |
880982141dfffff,1 | |
882f5aa887fffff,1 | |
8810ad7559fffff,11 | |
8830e02eddfffff,13 | |
8812d03351fffff,2 | |
88194e6a65fffff,1 | |
88101608adfffff,1 | |
8819599113fffff,1 | |
8810ad7559fffff,9 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
s |