Skip to content

Instantly share code, notes, and snippets.

View Todai88's full-sized avatar

Joakim Bajoul Kakaei Todai88

  • Snyk
  • London, United Kingdom
View GitHub Profile
test
/*
itoa.c (i, s, w)
@param i: integer
@param s: char []
@param w: width
@returns a string representation of i with any excess (left) padding
in blankspaces dependant on the width w.
*/
int main() {
while((len = get_line(line, MAXLINE)) > 0) {
printf("%s", line);
}
}
int get_line(char line[], int limit) {
int current, index;
int main () {
// ### Setting up the variables
char input [100], blank[100];
fgets(input, 100, stdin);
int i = 0, k = 0;
// ### Looping over the array
while (input[i] != '\0') {
if (input[i] == ' ') {
#!/usr/bin/env python3
"""
rover_tests.py was finished a few hours before I started integrating
the Rover into the interface / delegator (main.py).
As always is the case some test-cases were added after the intial
draft of the document.
$ npm start
> meapp@1.0.0 start D:\Schoolwork\Cygwin\dbwebb-kurser\webapp\me\redovisa\www
> webpack js/index.js bin/app.js -d
Hash: 417dbec39962bf138ad6
Version: webpack 2.3.2
Time: 204ms
Asset Size Chunks Chunk Names
app.js 168 kB 0 [emitted] main
/// Index.js
"use strict";
var app = {
// Application Constructor
initialize: function() {
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
},
// deviceready Event Handler