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
<%@ Page Language="C#" %> | |
<%@ import Namespace="System.Runtime.InteropServices" %> | |
<script runat="server"> | |
/****************************************************************** | |
WLGenLicenseSmartKey rev1 - sample code contributed by Sanjay Kanade, AvniTech.com in 2008. | |
WLGenLicenseDynSmartKey rev2- sample code by PipisCrew in 2016 | |
You are responsible for making any changes, testing and using it as per your | |
requirement. The author assumes no responsibility for any bugs or problems | |
arising from the use of the code. |
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
program Rand; | |
uses | |
crt; | |
var | |
menuChoice : integer; | |
soldArray : array[1..100,1..2] of integer; | |
RANDres : integer; | |
soldiersCount : Integer; |
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
<?php | |
function connect_mysql() { | |
$mysql_hostname = "localhost"; | |
$mysql_user = "x"; | |
$mysql_password = "x"; | |
$mysql_database = "x"; | |
$dbh = new PDO("mysql:host=$mysql_hostname;dbname=$mysql_database", $mysql_user, $mysql_password, | |
array( |
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
public class Person { | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
} | |
// IN FORM - Create a list of people | |
List<Person> people = new List<Person>(); | |
people.Add(new Person() { FirstName = "Gottfried", LastName = "Leibniz" }); | |
people.Add(new Person() { FirstName = "Marie", LastName = "Curry" }); |
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
//more simply examples http://www.pipiscrew.com/2015/06/bootstrap-select-mutliselect/ | |
////////////////////////[index.php] | |
<?php | |
//convert recordset to 1D array (will use it, to mark the multi-selects @ JS) | |
function get_array_by_set($db_set) | |
{ | |
$rec_children = array(); | |
foreach($db_set as $row) { | |
$rec_children[]= $row[0]; |
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
<!-- http://www.pipiscrew.com/2015/08/js-utc-calcs/ --> | |
<script> | |
$(function () { | |
//init with date now | |
$("[name=post_date]").val(date_formatter(new Date())); | |
//edit button - read record | |
function query_POSTS_modal(rec_id){ | |
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
<?php | |
session_start(); | |
if (!isset($_SESSION["x"])) { | |
header("Location: index.html"); | |
exit ; | |
} | |
if (isset($_GET["id"])) { |
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
//at activity | |
List<TestItem> rowItems = new ArrayList<TestItem>(); | |
TestItem rec; | |
for (DataSnapshot snapshot : arg0.getChildren()) { | |
rec = new TestItem(); | |
rec.setID(snapshot.getRef().getName()); | |
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
<script src="https://cdn.firebase.com/v0/firebase.js"></script> | |
<script type='text/javascript' src="https://cdn.firebase.com/v0/firebase-token-generator.js"></script> | |
var tokenGenerator = new FirebaseTokenGenerator("x"); | |
var token = tokenGenerator.createToken({isModerator: true}); | |
var dataRef = new Firebase("https://x.firebaseio.com/"); | |
dataRef.auth(token, function(error) { | |
if(error) { |
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
<?php | |
//used for defined array, used on functions | |
class RECORD { | |
public $date_rec; | |
public $sessionID; | |
public $event_name; | |
public $app_version; | |
public $app_platform; | |
public $device; |