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
// Store the profile getting here | |
// Require libs | |
var http = require("http"); | |
// Define the printMessage function, self-explanatory | |
function printMessage(username, badgeCount, points) { | |
var message = username + " has " + badgeCount + " total badge(s) and " + points + " points in JavaScript"; | |
console.log(message); |
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 java.io.Console; | |
public class JavaTest { | |
public static void main(String[] args) { | |
Console console = System.console(); | |
String firstName; | |
do { | |
firstName = console.readLine("What is your name?\n"); |
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
// Require the filesystem module from Node.js | |
var fs = require("fs"); | |
// Create a new date at this exact moment | |
var date = new Date(); | |
// Retrieve the date, month, hour, minute and second | |
var dateDate = date.getDate(), | |
dateMonth = date.getMonth() + 1, // Since the getMonth method is 0-based we need to add one to make it 1-12 | |
dateHour = date.getHours(), |
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
# coding=<utf-8> | |
# Weather Check | |
# Created by MrMadsenMalmo and MrTijn | |
# Import libs | |
import pywapi as weatherModule | |
import sys | |
import string | |
from time import sleep |
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
# Python GMail Checker | |
# Written by Fredrik A. Madsen-Malmo [@MrMadsenMalmo] | |
# Import modules | |
import os | |
import RPi.GPIO as GPIO | |
from time import sleep | |
import imaplib | |
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 Tkinter import * | |
class MyApp: | |
def callback(self): | |
print self.inputValue.get() | |
def key(self, event): | |
# print "debug: pressed char {}".format(repr(event.char)) | |
if event.char == "\r": | |
self.myParent.destroy() |
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
using System; | |
class test { | |
public static void Main() { | |
Console.WriteLine("Hello, World!"); | |
} | |
} |
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
using System; | |
namespace PersonPrinter | |
{ | |
interface IPerson | |
{ | |
string Name { get; set; } | |
int Age { get; set; } | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace SimpleGUI_sketch | |
{ | |
interface IOption | |
{ |
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
def fileUpdate(fileNameArray, callback): # I am plannig to have the fileNameArray also contain the full path to the file, as this would make it a lot easier | |
for fileName in fileNameArray: | |
os.system("stat {} > editedTime.log".format(fileName)) | |
lastEdited = None | |
with open("editedTime.log", "r+") as file: | |
content = file.read() | |
lastEdited = re.search("(?P<edit>)", content, RE.VERBOSE) # Replace the regular expression with some RegEx that gets the date and time |
OlderNewer