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
@Override | |
public Iterator<Giocatore> iterator() { | |
class IteratorOverGiocatores implements Iterator<Giocatore> { | |
private int currentIndex = 0; | |
@Override | |
public boolean hasNext() { | |
return (currentIndex < rosa.size() && !rosa.isEmpty()); | |
} | |
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
/** | |
* Questa classe non e' stata utilizzata davvero. | |
*/ | |
public abstract class AbstractFilter implements Filter { | |
/* | |
public StringBuffer process(String in) { | |
return process(new StringBuffer(in)); | |
} | |
public StringBuffer process(StringBuffer in); |
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
[ x for x in [1, 2, 3] and [4, 5, 6] ] == [ 1, 2, 3, 4, 5, 6 ] |
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
@transact_ro | |
def get_receiver_logs(store, receiver_id, language=GLSetting.memory_copy.default_language): | |
receiver = store.find(Receiver, Receiver.id == receiver_id).one() | |
rlogs = receiver.user.access_log | |
return rlogs | |
class ReceiverLogs(BaseHandler): | |
#@... | |
def get(self): |
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
;; triangleNumbers.asm | |
.text | |
.globl main | |
main: | |
;; Push $ra onto the stack ... | |
subu $sp, $sp, 4 | |
sw $ra, 0($sp) |
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
## foo.asm | |
.text | |
.globl main | |
main: | |
## Load *theFloat into $f0 ... | |
l.s $f0, theFloat | |
nop |
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
function forEach(array, f) { | |
for (i = 0; i < array.length; ++i) { | |
f(array[i]); | |
} | |
} | |
function foo() { | |
ret = 4; | |
return ret; | |
} |
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
#!/usr/bin/node | |
// Ad-hoc attack for my own router ... :) | |
var fs = require('fs') | |
var request = require('request') | |
fs.readFile('passwords.txt', 'utf8', function (err, data) { | |
if (err) { | |
throw err | |
} | |
pws = data.split('\n') | |
pws.pop() |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <assert.h> | |
void tokenize (const char *s, char ***tokens, size_t *tokens_length) { | |
char *current_ptr = NULL; | |
char *previous_ptr = NULL; | |
size_t characters_read = 0; | |
current_ptr = previous_ptr = s; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
char *scanner(); | |
void my_realloc(char **str,int size); | |
int main(void){ | |
int size=100,i=0; | |
//scanf("%d",&n); | |
char **str,*p; |
OlderNewer