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
.col1{ | |
width: 8.333%; | |
float: left; | |
} | |
.col2{ | |
width: 16.666%; | |
float: left; | |
} |
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 csv | |
import re | |
tot = '' | |
for i in os.listdir('csv'): | |
with open('csv/' + i) as f: | |
tot += f.read().replace(',\n', '\n') | |
print(f.read()) |
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
util = require('util'); | |
require('util.promisify').shim(); | |
exec = util.promisify(require('child_process').exec); | |
atom.commands.add 'atom-text-editor', 'blog:publish', -> | |
editor = atom.workspace.getActivePaneItem() | |
file = editor?.buffer.file.path.split('\\') | |
file.splice(-1,1) | |
{ stdout, stderr } = exec("cd #{file.join('\\')} && git add * && git commit * -m \"Updated blog\" && git push"); |
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
with open('out.py', 'w') as f: | |
f.write('') | |
def write(text, indent): | |
with open('out.py', 'a') as f: | |
f.write((indent * ' ') + text + '\n') | |
return | |
with open('in.txt') as f: | |
lines = f.readlines() |
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
class world: | |
def turn(self): | |
print('this is the world\'s turn') | |
class prompt: | |
def handle(self, command): | |
w.turn() #Calls worlds turn | |
def turn(self): | |
command = input('# ') #This is where the users command is prompted | |
p.handle(command) #calling this as a seperate function to process the input from the prompt |
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
#Persistent | |
#SingleInstance force | |
;; tiling window manager for windows 7-10 designed for 1 or 2 monitors arranging | |
;; windows in the following pattern with configurable window sizes and borders: | |
;; _________ _________ | |
;; | | | | |___| <- primary monitor | |
;; | | | | | | | |
;; '---i-----' '-----i---' |
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
$(document).delegate('#textbox', 'keydown', function(e) { | |
var keyCode = e.keyCode || e.which; | |
if (keyCode == 9) { | |
e.preventDefault(); | |
var start = this.selectionStart; | |
var end = this.selectionEnd; | |
// set textarea value to: text before caret + tab + text after caret | |
$(this).val($(this).val().substring(0, start) + |
NewerOlder