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 os | |
| import os.path | |
| def new(): | |
| print("This is your new game.") | |
| os.makedirs('sav', exist_ok=True) | |
| i = 0 | |
| name = 'save*.cwr' | |
| for i in ['*' for name in os.listdir('sav') if os.path.isfile(name)]: | |
| i+=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
| num = int(input("How many primes would you like?\n")) | |
| n = 0 | |
| p = 0 | |
| primes = [ ] | |
| while p < num: | |
| if(n % 2 != 0 and n % 3 != 0 and n % 4 != 0 and n % 5 != 0): | |
| primes.append(n) | |
| p+=1 | |
| n+=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
| import random | |
| weapons = ["Rock", "Paper", "Scissors", "rock", "paper", "scissors"] | |
| players = ["computer", "Computer", "human", "Human"] | |
| rock = ["Rock", "rock"] | |
| paper = ["Paper", "paper"] | |
| scissors = ["Scissors", "scissors"] | |
| res = "" |
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
| if text.startswith("@U0E4887DF"): | |
| tasks[user].append(text[8:]) | |
| outputs.append([channel, "added"]) |
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 os | |
| import pickle | |
| from collections import defaultdict | |
| outputs = [] | |
| crontabs = [] | |
| tasks = defaultdict(list) | |
| FILE = 'plugins/todo.data' |
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
| location 10.b.l.a:h { | |
| proxy_pass http://blah.blech.com; | |
| } |
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
| /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:155:in `parse': 399: unexpected token at ']' (JSON::ParserError) | |
| from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:155:in `parse' | |
| from 1password2pass.rb:102:in `<main>' |
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
| -- Set Function for opening my email | |
| local function openmail() | |
| application.launchOrFocus("CloudMagic Email") | |
| end | |
| -- Set prefix mode | |
| prefix = hs.hotkey.modal.new('cmd', 'j') | |
| function prefix:entered() hs.alert'Entered mode' end | |
| function prefix:exited() hs.alert'Exited mode' end | |
| prefix:bind('', 'escape', function() prefix:exit() end) |
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
| projects.custom-field-definitions | |
| { | |
| "my-org:ldap:dn": { | |
| "name": "LDAP DN", | |
| "type": "text", | |
| "caption": "DN of the LDAP object to sync with (if any).", | |
| "required": false, | |
| "disabled": false, | |
| "edit": true, |
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
| local function originalarrows() | |
| prefix:bind('', 'Left', function() leftwin(false) end) | |
| prefix:bind('', 'Right', function() rightwin(false) end) | |
| prefix:bind('', 'Up', function() topwin(false) end) | |
| prefix:bind('', 'Down', function() botwin(false) end) | |
| end | |
| local function newarrows() | |
| prefix:bind('', 'Left', function() leftwin(true) end) | |
| prefix:bind('', 'Right', function() rightwin(true) end) |
OlderNewer