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 datetime | |
import pendulum | |
import os | |
import requests | |
from airflow.decorators import dag, task | |
from airflow.providers.postgres.hooks.postgres import PostgresHook | |
from airflow.providers.postgres.operators.postgres import PostgresOperator | |
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 random | |
words = ['apple', 'crane', 'kane', 'lime', 'kite'] | |
word = random.choice(words) | |
game = ['_']*len(word) | |
wrog_letters = [] | |
lives = 6 | |
print (game) | |
while lives > 0: | |
val = input("Guess the letter ? ") |
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
@props(['value', 'name']) | |
@php | |
$districts = ['Ampara', 'Anuradhapura', 'Badulla', 'Batticaloa', 'Colombo', | |
'Galle', 'Gampaha', 'Hambanthota', 'Jaffna', 'Kaluthara', 'Kandy', | |
'Kegalle', 'Killinochchi', 'Kurunagala', 'Mannar', 'Matale', 'Mathara', | |
'Monaragala', 'Mullathivu', 'Nuwara Eliya', 'Polonnaruwa', 'Puttalam', | |
'Rathnapura', 'Trincomalee', 'Vavuniya'] | |
@endphp |
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
// ************* | |
// A way to pin authenticate a twitter account using commandline and NodeJs | |
// Get your app consumer key and secret from dev.twitter.com | |
// Fill them below | |
// npm install to install packages | |
// node app.js | |
var oauth = require('oauth'); | |
// Get your credentials here: https://dev.twitter.com/apps |
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
Privacy Policy | |
Refresh Labs built the Poke app as a Free app. This SERVICE is provided by Refresh Labs at no cost and is intended for use as is. | |
This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service. | |
If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy. | |
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Poke unless otherwise defined in this Privacy Policy. | |
Information Collection and Use |
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 numpy as np | |
low = 0 | |
high = 9 | |
chromes = 200 | |
epoch = 2000 | |
achivement = 0.58 | |
cr = 0.4 | |
mr = 0.3 |
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 numpy as np | |
def S(x): | |
return 1/(1+np.exp(-x)) | |
win = np.random.randn(2,2) | |
wout = np.random.randn(2,1) | |
eta = 0.25 | |
# dummy values used to see if everything is correct manually |
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
// Sigmoid function | |
function S(num){ | |
var y = 1 / (1 + Math.exp(num)); // y = 1/(1+e^x) | |
return(y) | |
} | |
// Training function | |
function process(arr) { | |
var w = [] | |
var bias = 0.5 |
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 message="Function Disabled!";function clickIE4(){if(event.button==2){alert(message);return ture}}function clickNS4(a){if(document.layers||document.getElementById&&!document.all){if(a.which==2||a.which==3){alert(message);return true}}}if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4}else{if(document.all&&!document.getElementById){document.onmousedown=clickIE4}}document.oncontextmenu=new Function("alert(message);return ture"); |
NewerOlder