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
here=$(pwd) | |
gsettings set org.gnome.gnome-screenshot auto-save-directory "file://$here/" | |
echo "Set" | |
echo "file://$here/" |
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
print("Give me a path") | |
path = input() | |
file_object = open(path, "r") | |
keepers = [] | |
losers = [] | |
for line in file_object: | |
while 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 sys | |
from PyQt5 import QtCore, QtGui, QtWidgets | |
from PyQt5.QtWidgets import QMessageBox | |
from MainDes import Ui_MainWindow | |
class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): | |
def __init__(self, parent=None): | |
QtWidgets.QWidget.__init__(self, parent) | |
self.setupUi(self) | |
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
#Copyright 2017 Cameron Reid <cameron[at]camreid[dot]co[dot]uk> | |
# | |
#Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
# | |
#1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
# | |
#2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | |
# | |
#3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | |
# |
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
#Making tea | |
getStuffReady(stuff: [teaBag, teaCup, kettle, water, milk, sugar, | |
spoon]) | |
kettle.boil() | |
teaBag.put(in: teaCup) | |
while (kettle.water.state != boiled) { | |
wait(for: "boiledWater") | |
} |
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
using System.Collections; | |
using System.Collections.Generic; | |
using System; | |
using System.IO; | |
using System.Threading; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEditor; |
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
SELECT Orders.OrderID, Orders.CustomerID, Customers.CompanyName, COUNT(Orders.CustomerID) AS 'OrderCount' FROM Orders | |
INNER JOIN Customers | |
ON Customers.CustomerID = Orders.CustomerID | |
GROUP BY Orders.OrderID, Orders.CustomerID, Customers.CompanyName, Customers.CustomerID |
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
CREATE TABLE mythicalBeasts | |
( | |
Name NVARCHAR(30), | |
Century TinyInt, | |
Details NVARCHAR(255) | |
) |
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
SELECT Customers.CustomerID, Customers.CompanyName, Orders.Freight FROM Customers | |
INNER JOIN Orders | |
ON Customers.CustomerID = Orders.CustomerID | |
WHERE Customers.CustomerID IN | |
(SELECT CustomerID FROM Orders WHERE Freight > 500) |
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
-- Define the database to use | |
USE ExSQL7 | |
-- Gets all the parts I want and joins them together and links them. | |
SELECT Region.RegionID, Territories.TerritoryID, Region.RegionDescription, Territories.TerritoryDescription FROM Region | |
INNER JOIN Territories | |
ON Territories.RegionID = Region.RegionID | |
ORDER BY RegionDescription, TerritoryDescription |
NewerOlder