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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body, html { | |
margin: 0; | |
padding: 0; | |
} | |
#wrapper { | |
width: 100%; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.red { | |
background-color: red; | |
height: 150px; | |
width: 150px; | |
} | |
.red.active { |
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
$(function () { | |
var tordaFunctions = { | |
sayHi: function(name) { | |
console.log('Hi ' + name); | |
}, | |
navFix: function() { | |
return $(document).on("scroll", function () { | |
var $nav = $(".navbar-fixed-top"); | |
$nav.toggleClass('scrolled', $(this).scrollTop() > $nav.height()); |
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
public void setRandomOptions() | |
{ | |
String[] answers = {}; | |
String[] options = {"PH", "USA", "NK", "SK"}; | |
Integer opt = 0; | |
while (2 > opt) { | |
String randomOption = options[new Random().nextInt(options.length)]; | |
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
### Form builder ### | |
public function form(Request $request) | |
{ | |
if("POST" == $request->getMethod()) { | |
if ($form->isValid()) { | |
$data = $form->getData(); | |
echo $data->getTitle(); | |
} | |
} |
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 <stdio.h> | |
int main() | |
{ | |
int n[3]; | |
int a, max, min1, min2, index, num1, num2, num3; | |
printf("enter three numbers:\n"); | |
scanf("%d%d%d", &num1, &num2, &num3); | |
n[0] = num1; |
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
<?php | |
use Doctrine\Common\Collections\Criteria; | |
class Classy | |
{ | |
public function index() | |
{ | |
$criteria = new Criteria(); | |
$criteria->where(Criteria::expr()->neq('roles', 'ROLE_USER')); |
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 <stdio.h> | |
#include <conio.h> | |
float formula(float x, float y, int z); | |
void main() | |
{ | |
int choice; | |
float num1,num2; |
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
/****************************************************************************** | |
Online C Compiler. | |
Code, Compile, Run and Debug C program online. | |
Write your code in this editor and press "Run" button to compile and execute it. | |
*******************************************************************************/ | |
#include <stdio.h> |
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
<?php | |
$wala = 92; | |
$meron = 101; | |
$percent = (90/100); | |
if ($wala === $meron) { | |
$meron = $meron; | |
$wala = ($percent*$meron); |