Skip to content

Instantly share code, notes, and snippets.

View bomboclat's full-sized avatar
💭
ಠ_ಠ

Andrea Galletti bomboclat

💭
ಠ_ಠ
View GitHub Profile
@bomboclat
bomboclat / convert-deploymentconfig-to-deployment.py
Last active October 8, 2024 19:38
convert-deploymentconfig-to-deployment.py
#!/usr/bin/env python3
import sys
import re
import yaml
class YamlTransform():
def __init__(self, filename, keys_sub):
self.filename = filename
$(document).ready(function() {
$('select').formSelect();
$("#action").on("click", search);
$("#search").keypress(function(e) {
if(e.which == 13) {
$("#action").click();
}
});
});
class Login():
def on_get(self, req, resp):
resp.content_type = 'text/html'
resp.body = 'Hello world!'
def on_post(self, req, resp):
raise falcon.HTTPSeeOther('loadpoints')
# devo fare il redirect da post a get
=== [ou] Untitled 4 ===
Cloyster @ Focus Sash
Ability: Skill Link
EVs: 4 HP / 252 Atk / 252 Spe
Adamant Nature
- Shell Smash
- Icicle Spear
- Rock Blast
- Ice Shard
<!--all' inizio del documento login.php session_start(); è responsabile
di aprire la sessione e lasciarla aperta dopo che l' utente ha fatto il login -->
<?php
session_start();
?>
<!--alla fine di login.php(riga 164), invece, è presente questa parte che si occupa di prelevare utente e password dagli input
e confrontarli con quelli salvati nel database-->
@bomboclat
bomboclat / demo.js
Last active November 15, 2016 23:57
server program node
/*
*Including external module
*/
process.stdin.resume();
process.stdin.setEncoding('utf8');
var util = require('util');
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var sqlite3 = require('sqlite3').verbose();