Skip to content

Instantly share code, notes, and snippets.

[ineentho@manjaro bin]$ touch test
[ineentho@manjaro bin]$ node test && time node test
real 0m0.073s
user 0m0.070s
sys 0m0.000s
[ineentho@manjaro bin]$ node-anywhere test && time node-anywhere test
real 0m0.545s
user 0m0.527s
HTTP/1.1 302 Found
Alternate-Protocol: 80:quic,p=1
Cache-Control: private
Content-Length: 258
Content-Type: text/html; charset=UTF-8
Date: Thu, 14 May 2015 08:14:39 GMT
Location: http://www.google.se/?gfe_rd=cr&ei=b1lUVYSNCYWA8Qec34HwBA
Server: GFE/2.0
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<?php
$dbh = new PDO('mysql:host=localhost;dbname=test', 'root', 'sten123');
function create_user($username, $password) {
global $dbh;
$loginStmt = $dbh->prepare('INSERT INTO users (username, password) VALUES(:username, :password)');
$loginStmt->bindValue(':username', $username);
$loginStmt->bindValue(':password', $password);
<?php
$dbh = new PDO('mysql:host=localhost;dbname=test', 'root', 'sten123');
function create_user($username, $password) {
global $dbh;
$loginStmt = $dbh->prepare('INSERT INTO users (username, password) VALUES(:username, :password)');
$loginStmt->bindValue(':username', $username);
$loginStmt->bindValue(':password', password_hash($password, PASSWORD_DEFAULT));
<?php
$dbh = new PDO('mysql:host=localhost;dbname=test', 'root', 'sten123');
function create_user($username, $password) {
global $dbh;
$loginStmt = $dbh->prepare('INSERT INTO users (username, password) VALUES(:username, :password)');
$loginStmt->bindValue(':username', $username);
$loginStmt->bindValue(':password', password_hash($password, PASSWORD_DEFAULT));
<?php
$dbh = new PDO('mysql:host=localhost;dbname=test', 'root', 'sten123');
function authenticate($username, $password) {
global $dbh;
$loginStmt = $dbh->prepare('SELECT password FROM users WHERE username = :username');
$loginStmt->bindValue(':username', $username);
$loginStmt->execute();
package io.opid.network.adapter;
import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Toast;
<?php
$dbh = new PDO('mysql:host=julkalender3d.se.mysql;dbname=julkalender3d_s', 'julkalender3d_s', 'amax3Ds');
if (isset($_POST['Field4']))
{
$franvaro=htmlspecialchars($_POST['field106']);
if ($_POST['Field106']=="Second Choice")
$franvaro="Närvarande";
/*******************************************************************************
* Copyright 2014-2015, the Biomes O' Plenty Team
*
* This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
*
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
******************************************************************************/
package biomesoplenty.client.model;
#!/bin/sh
# This script is expected to be run from the .minecraft directory.
# Go into the saves directory, since everything will based on the world
# directories which can be found there
cd saves
# Obtain an array of all saves
saveFiles=(*)