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 'package:flutter/material.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import '../settings/settings_view.dart'; | |
import 'sample_item.dart'; | |
import 'sample_item_details_view.dart'; | |
final textControllerProvider = StateProvider<TextEditingController>((ref) { | |
return TextEditingController(); | |
}); |
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
FROZEN_ERROR = 'frozen objects are read only' | |
def frozen(iterable): | |
class Frozen(type(iterable)): | |
def __setitem__(self, key, value): | |
raise Exception(FROZEN_ERROR) | |
def __set__(self, instance, value): | |
raise Exception(FROZEN_ERROR) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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
<!DOCTYPE html> | |
<!-- saved from url=(0031)http://nyc3.stor.re/beta/a/t5vt --> | |
<html lang=""> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Followers for Instagram</title> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=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
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
var all_usernames = []; | |
function main(){ | |
jQuery.noConflict(); | |
$ = jQuery; |
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
#!/usr/bin/env python | |
from type_checked_entities import entity_factory | |
Giraffe = entity_factory( # let's define what is a giraffe! | |
"giraffe", | |
name=str, # my name is a string | |
age=float, # my age is an int | |
eats=object, # I eat pretty much everything. | |
) |
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
%matplotlib inline | |
import numpy as np | |
from matplotlib import pyplot as plt | |
import pymc as pm | |
import numpy as np | |
p = 0.5 | |
lambda_1 = pm.Binomial("lambda_1", 1000, p) | |
lambda_2 = pm.Binomial("lambda_2", 1000, p) |
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 os | |
import sys | |
import subprocess | |
from redash.query_runner import * | |
class InsecureScript(BaseQueryRunner): | |
@classmethod | |
def enabled(cls): | |
return True |
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 itertools | |
import random | |
els = range(10) # elements of the slot | |
wins_profile = dict() | |
wins_profile[0] = 65 | |
# wins_profile[10] = 15 # don't know any valid combo for this :-) | |
# wins_profile[20] = 10 # same here | |
wins_profile[50] = 5 |
NewerOlder