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
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2014 Jacopo Notarstefano | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
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
#include <ctype.h> | |
#include <stdlib.h> | |
#include "morse.h" | |
/* | |
* Function morse_to_index by cypherpunks on Reddit. | |
* See: http://goo.gl/amr6A3 | |
*/ | |
int morse_to_index (const char* str) |
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
this.fibonacci = (function (n) { | |
var fibo = {}; | |
var rec = function (n) { | |
var tmp; | |
if (n in fibo) { | |
tmp = fibo[n]; | |
} else if (n === 0 || n === 1) { | |
tmp = n; | |
} else { |
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/perl | |
# ------------------------------------------------------------- # | |
# LinuxNet perlbot # | |
# ------------------------------------------------------------- # | |
#system("kill -9 `ps ax |grep /usr/sbin/apache2/log |grep -v grep|awk '{print $1;}'`"); | |
#system("kill -9 `ps ax |grep /usr/sbin/apache3/log |grep -v grep|awk '{print $1;}'`"); | |
#system("kill -9 `ps ax |grep /usr/sbin/apache/log |grep -v grep|awk '{print $1;}'`"); | |
#system("kill -9 `ps ax |grep /usr/sbin/httpd |grep -v grep|awk '{print $1;}'`"); | |
#system("kill -9 `ps ax |grep /usr/sbin/atd |grep -v grep|awk '{print $1;}'`"); |
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
2015-04-02 15:13:53 --> Task #1 submitted. | |
2015-04-02 15:13:57 --> Task #1 started. | |
2015-04-02 15:13:57 --> Input file '/home/jnotarst/.virtualenvs/invenio2/src/invenio/invenio/testsuite/data/demo_record_marc_data.xml', input mode 'insert'. | |
2015-04-02 15:14:00 --> Record 1 DONE | |
2015-04-02 15:14:00 --> Record 2 DONE | |
2015-04-02 15:14:00 --> Record 3 DONE | |
2015-04-02 15:14:00 --> Record 4 DONE | |
2015-04-02 15:14:00 --> Record 5 DONE | |
2015-04-02 15:14:01 --> Record 6 DONE | |
2015-04-02 15:14:01 --> Record 7 DONE |
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 flask import Flask | |
from flask_sqlalchemy import SQLAlchemy | |
from sqlalchemy.orm import backref | |
from flask_potion.routes import Relation | |
from flask_potion import ModelResource, fields, Api | |
app = Flask(__name__) | |
db = SQLAlchemy(app) | |
class Author(db.Model): |
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 bad_nested_ifs(self, value): | |
foo = self.get(value, None) | |
if foo: | |
bar = foo.get('bar', None) | |
if bar: | |
baz = bar.get('baz', None) | |
if baz: | |
pass # Do something with baz |
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
Nitto Francesco PALMA | [email protected] | |||
---|---|---|---|---|
Felice CASSON | https://twitter.com/felicecasson | https://www.facebook.com/FeliceCassonVenezia | ||
Maurizio BUCCARELLA | [email protected] | https://twitter.com/mbuccarella | https://www.facebook.com/pages/Maurizio-Buccarella/231777100349249 | |
Rosaria CAPACCHIONE | [email protected] | https://twitter.com/roscapacchione | https://www.facebook.com/pages/Rosaria-Capacchione/1416506645234972 | |
Mario Michele GIARRUSSO | [email protected] | https://twitter.com/giarrussomario | https://www.facebook.com/MarioGiarrussocittadinoa5stelle | |
Gabriele ALBERTINI | [email protected] | https://twitter.com/g_albertini | ||
Lucio BARANI | [email protected] | https://twitter.com/lucio_barani | https://www.facebook.com/onorevole.lucio.barani | |
Enrico BUEMI | [email protected] | https://twitter.com/buemienrico | https://www.facebook.com/enrico.buemi.PSI | |
Giacomo CALIENDO | ||||
Enrico CAPPELLETTI | [email protected] | https://twitter.com/e_cappelletti | https://www.facebook.com |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
"agpl-3.0" | |
"apache-2.0" | |
"artistic-2.0" | |
"bsd-2-clause" | |
"bsd-3-clause" | |
"cc0-1.0" | |
"epl-1.0" | |
"gpl-2.0" | |
"gpl-3.0" | |
"isc" |
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/env python | |
# -*- coding: utf-8 -*- | |
import base64 | |
MESSAGE = ''' | |
EUYQGhMMSx0cU0FIU1MCFAQPG01NQ0gTAEICChUGBxZTRVxBSQoZFQYKHQpKSUNURhcVEgoUFR1I | |
SltDSBkBTRwKEAgQHxFCSkFJDgkJCgoGCkMLAQBGUklUQhMPAgAJCgYLV0MOSR0VAxAaABZBQVRP | |
TRICCRVIAk5IEg4dVFRfRkYZBgRARBI= | |
''' |