Skip to content

Instantly share code, notes, and snippets.

View RobbiNespu's full-sized avatar
:octocat:
Wut?

Robbi Nespu RobbiNespu

:octocat:
Wut?
View GitHub Profile
@RobbiNespu
RobbiNespu / hoi.php
Created April 30, 2015 16:11
Filter "space" input
<?php
$input = "2 4"; // Input dari user
print_r(str_split($input)); // Tgk kedudukan array 0 hingga 2
$input = str_split($input);
echo "Data :".$input[0]; // Display kedudukan array[0]
echo "\n"; // Skip array[1]
echo "Data :".$input[2]; // Display kedudukan array[2]
?>
git help # shows git commands
git init # creates git repository in current directory
git add -A # adds all files in current directory to repository
git commit -m "message" # commits changes with specific message
git push # pushes committed changes to remote repository on server
git status # checks current status of the local repository
git pull # pulls updates from remote repository
git fetch # fetches changes from remote repository
git fetch -p # fetches changes with "prune" option removes local copies of deleted "remote" branches
git checkout my_branch # switches to branch named "my_branch"
@RobbiNespu
RobbiNespu / gist:a19310898a5374cbf692
Created June 1, 2015 07:30
Select an item in asp.net dropdownlist by text
// Old technique
foreach (ListItem item in DropDownList1.Items) {
if (item.Text == defaultText) {
item.Selected = true;
break;
}
}
// 2nd technique
DropDownList1.SelectedIndex = DropDownList1.Items.IndexOf( DropDownList1.Items.FindByText( defaultText));
@RobbiNespu
RobbiNespu / gist:1aac8336cb44ba589a38
Created June 5, 2015 07:32
My linux notepad indicator notes
Apache / MySQL
==============
sudo /etc/init.d/<services> <option>
Services : Apache2, Mysql
Option : start. stop, restart
Shortcut key
=============
Ctrl + Super + D - Max/Min windows
Super + S - Zoom out, switch workspace
@RobbiNespu
RobbiNespu / gist:3c4b91726d05fd810ac3
Created June 5, 2015 07:41
My ubuntu application list
Android studio (ppa ubuntu-make)
keeppass2
gitgui
classic menu indicator
tlp (battery)
sublime-text editor
touchpad indicator
mysql workbench
apache2 + php + mysql
dropbox
Start xamp
==========
sudo /opt/lampp/lampp start
Stop xampp
==========
sudo /opt/lampp/lampp stop
Restart xampp
==============
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Successfully installed bundler-1.10.3
1 gem installed
Installing ri documentation for bundler-1.10.3...
Installing RDoc documentation for bundler-1.10.3...
@RobbiNespu
RobbiNespu / gist:2b17447e879e42c4e6be
Created June 15, 2015 20:28
ASPX Page.Request.Form
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<script runat="server">
// Fig. 19.36: Guestbook.aspx.cs
// Code-behind file that defines event handlers for the guestbook.
using System;
using System.Collections.Specialized; // for class ListDictionary
public partial class Guestbook : System.Web.UI.Page
{
// Submit Button adds a new guestbook entry to the database,
// clears the form and displays the updated list of guestbook entries
protected void submitButton_Click( object sender, EventArgs e )
Concepts of test architectures
Abstraction of test cases (e.g. test levels, test types, abstract equivalent classes, high-level test conditions and high-level test cases)
Relationships of abstract test cases
Separation of concerns for test
Architecture of test suite based on abstract test cases (e.g. design of test levels and test types)
Types of test architecture (e.g. architecture of test suite and architecture of test system/environment)
Similarities, differences and harmonization between test suite architecture and test system architecture
Similarities and differences among test architecture, test strategy, test plan and test sub-process in 29119
Design of test architecture
How to design several test levels