Skip to content

Instantly share code, notes, and snippets.

View simplyniceweb's full-sized avatar

Jaylord Ferrer simplyniceweb

  • Philippines
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<style>
body, html {
margin: 0;
padding: 0;
}
#wrapper {
width: 100%;
<!DOCTYPE html>
<html>
<head>
<style>
.red {
background-color: red;
height: 150px;
width: 150px;
}
.red.active {
$(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());
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)];
### Form builder ###
public function form(Request $request)
{
if("POST" == $request->getMethod()) {
if ($form->isValid()) {
$data = $form->getData();
echo $data->getTitle();
}
}
@simplyniceweb
simplyniceweb / get higher value c lang
Created July 28, 2018 08:54
kiking do you love me
#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;
@simplyniceweb
simplyniceweb / doctrine.notequal.php
Created August 7, 2018 11:31
Doctrine query not equal
<?php
use Doctrine\Common\Collections\Criteria;
class Classy
{
public function index()
{
$criteria = new Criteria();
$criteria->where(Criteria::expr()->neq('roles', 'ROLE_USER'));
#include <stdio.h>
#include <conio.h>
float formula(float x, float y, int z);
void main()
{
int choice;
float num1,num2;
@simplyniceweb
simplyniceweb / multidimensional
Created October 1, 2018 08:04
multi dimensional array c lang
/******************************************************************************
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>
<?php
$wala = 92;
$meron = 101;
$percent = (90/100);
if ($wala === $meron) {
$meron = $meron;
$wala = ($percent*$meron);