🤷♂️
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
| qsdfqsdf |
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
| Image dump |
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
| from iaso.models import * | |
| from django.contrib.auth.models import Permission | |
| permission = Permission.objects.get(codename="iaso_completeness") | |
| acc = Account.objects.get(id=20) | |
| profiles = Profile.objects.filter(account=acc).filter(user__user_permissions=permission) | |
| c = 0 | |
| print("permission", permission) | |
| for profile in profiles: | |
| print(profile) |
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
| s = new Set(); | |
| for (i = 0 ; i < 500000; i++) | |
| s.add(""+i); | |
| count = 0; | |
| for (i = 0 ; i < 500000; i++) | |
| if (s.has(""+i)) | |
| count = count + 1; | |
| console.log(count); |
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
| from uuid import uuid4 | |
| s = set() | |
| for i in range (500000): | |
| s.add(str(uuid4())) | |
| count = 0 | |
| for uu in s: | |
| if uu in s: | |
| count += 1 |
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
| # request one at http://api.census.gov/data/key_signup.html and paste it below | |
| CENSUS_API_KEY=YOUR_CODE_HERE | |
| # a factor 1609.34 squared | |
| SQ_M_TO_SQ_MI=2589975.2356 | |
| #prereqs: | |
| # npm install -g shapefile # 0.6.1 | |
| # npm install -g d3-geo-projection # 1.2.1 | |
| # npm install -g ndjson-cli # 0.3.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
| <html> | |
| <head> | |
| <script src="https://cdn.jsdelivr.net/npm/britecharts@2/dist/bundled/britecharts.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.10.2/d3.js"></script> | |
| <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/britecharts@2.0.0/dist/css/britecharts.min.css"/> | |
| </head> | |
| <body> | |
| <h1>Britecharts test</h1> | |
| <div class="js-bar-container"></div> |
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 rep = 20; // Number of repeat | |
| var timeout = 370; // Delay between clicks | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| async function run() { | |
| while (rep-- > 0) {$("#next_button").click(); await sleep(timeout);}; | |
| } |
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
| from flask import Flask, redirect, request | |
| import requests | |
| from simple_salesforce import Salesforce | |
| consumer_key = 'your_consumer_key' | |
| consumer_secret = 'your_consumer_secret' | |
| access_token_url = 'https://login.salesforce.com/services/oauth2/token' | |
| redirect_uri = 'http://localhost:5000/callback' | |
| authorize_url = 'https://login.salesforce.com/services/oauth2/authorize' |
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
| /** | |
| * A class that can be part of a tabbed navigational interface (expected to be a `UIViewController` but can also be a | |
| * coordinator that proxies through to an underlying controller). | |
| */ | |
| public protocol TabComponent { | |
| /// The tab metadata | |
| var tabItem: TabItem { get } | |
| var viewController: UIViewController { get } | |
| } |
NewerOlder