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 __future__ import print_function, division | |
import os | |
job_list = [] | |
id = 0 | |
def calc_wt(): | |
temp = [] | |
for x in job_list: | |
sum = 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
echo "Select a browser " | |
echo "1. Chrome" | |
echo "2. Firefox" | |
read browser | |
echo "Which site you want to goto? " | |
read name | |
echo "Taking you to site $name" |
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
interface onClickListener { | |
public void onClick(); | |
} | |
public class Practice implements onClickListener { | |
@Override | |
public void onClick() { | |
System.out.println("this is a demo"); | |
} | |
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
interface onClickListener { | |
public void onClick(); | |
} | |
public class Practice { | |
public static void main(String[] args) { | |
onClickListener my_listener = new onClickListener() { | |
@Override | |
public void onClick() { | |
System.out.println("this is a demo"); |
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 gi.importer import DynamicImporter | |
DynamicImporter('GtkSource') | |
<gi.importer.DynamicImporter object at 0xb6e131ec> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>key test</title> | |
</head> | |
<script> | |
window.onkeypress = check_return; | |
function check_return(event) { |
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
#simulate omega network | |
import math | |
import sys | |
import cProfile, pstats | |
class simulate: | |
def __init__(self): | |
self.a = range(int(input('Enter number of inputs:'))) | |
self.b = self.a[:] | |
self.count = int(math.log(len(self.a),2)) |
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
import socket | |
class Get: | |
""" | |
this class makes get request to httpbin | |
""" | |
def __init__(self): | |
self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
self.s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,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
from gi.repository import Notify | |
import requests | |
import time | |
import os | |
import sys | |
class notification: | |
""" | |
To run this script, simply type: | |
python3 weather.py [time_interval] city & |
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
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> | |
<div class="gradient"> | |
</div> |
OlderNewer