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
/* Gregory Pierot */ | |
* { | |
box-sizing: border-box; | |
} | |
input { | |
display: inline-block; | |
background-color: rgba(255, 255, 255, 0.8); | |
border: 1px solid #c2c8d9; | |
color: #444444; |
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
<!-- Gregory Pierot --> | |
<template name="chat"> | |
{{> mainTitle}} | |
{{> navbar }} | |
{{#if currentUser}} | |
<div class="messages-box"> | |
<div class="messages-scroll"> | |
<div class="header"> | |
<h1>Welcome to Epicenter Chat!</h1> |
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
const convertBytesToStringUpToTerribytes = bytes => { | |
const lengthOfInt = Math.ceil(Math.log10(bytes + 1)); // Mathimatically get the length of an Integer. | |
if (lengthOfInt >= 1 && lengthOfInt <= 3) { | |
return `${bytes}bytes`; | |
} else if (lengthOfInt >= 4 && lengthOfInt <= 6) { | |
return `${(bytes / 1000).toPrecision(3)}Kb`; | |
} else if (lengthOfInt >= 7 && lengthOfInt <= 9) { | |
return `${(bytes / 1000000).toPrecision(3)}Mb`; | |
} else if (lengthOfInt >= 10 && lengthOfInt <= 12) { | |
return `${(bytes / 1000000000).toPrecision(3)}Tb`; |
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
<!-- Erik --> | |
<template name="fileSearch"> | |
{{> navbar }} | |
<!-- do work and your divs here --> | |
{{> displayFiles}} | |
</template> | |
<template name="displayFiles"> | |
{{#with allFiles }} | |
{{#each allFiles }} |
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
// Erik | |
import { Template } from "meteor/templating"; | |
import { ReactiveVar } from "meteor/reactive-var"; | |
import { Files } from "../imports/api/Files"; | |
Template.displayFiles.helpers({ | |
allFiles() { | |
let allFilesFromMongo = Files.find().fetch(); | |
let allFilesFromMongoReversed = allFilesFromMongo.reverse(); | |
let allFilesWithSizeString = allFilesFromMongoReversed.map(fileObj => { |
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
<?php | |
global $data; | |
$classmenu = (isset($data['inline_menu']) && $data['inline_menu'] && !$data['left_menu']) ? ' inline_menu' : ' newline_menu'; | |
$blog_title = get_bloginfo('name'); | |
/* if (LOGO_IMG) $logo = "<img src='".LOGO_IMG."' alt='' title='' />"; */ | |
/* if (LOGO_IMG) $logo = "<embed src='http://nickwenger.com/images/WEBLOGO_8.svg height='70'><embed>"; */ //old size | |
if (LOGO_IMG) $logo = "<div><embed id='Nicks-Logo-Thanks-To-Richard-Stanley' src='http://nickwenger.com/images/WEBLOGO_8.svg' height=70 style='width: auto;' ><embed></div>"; | |
else $logo = get_bloginfo('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
# article/sqliteArticles.py | |
# lines 76 - 81: | |
if "byId" in kwargs and kwargs["byId"]: | |
sql = ( str(kwargs["article_id"]), ) | |
for row in cur.execute("SELECT * FROM articles WHERE articles_id = ?", sql): | |
data = dict(zip(expectedSqlResults, row)) | |
rows.append(data) | |
return rows | |
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 sys | |
from setuptools import setup | |
from subprocess import PIPE, Popen | |
from setuptools.command.install import install | |
from setuptools.command.develop import develop | |
from setuptools.command.egg_info import egg_info | |
def NginxDefaultConfigFile(): | |
try: |
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
#!/usr/bin/python3.6 | |
from threading import Thread | |
from functools import wraps | |
import sys | |
from subprocess import Popen, PIPE | |
from difflib import SequenceMatcher | |
from time import sleep | |
import re | |
import rstr |
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
package main | |
import ( | |
"fmt" | |
"regexp" | |
) | |
func main() { | |
theString := ` program a2018; | |
/* This comment |