A Pen by Dave Martinez on CodePen.
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
function validateContact() { | |
// Baguhin mo lang onti to | |
var contact = document.getElementById('contact').value; | |
var contactLength = contact.length; | |
// Dagdag mo tong variable na to, regex tester | |
var contactIsDigit = /^\d+$/.test(contact); | |
// Tapos may last na condition | |
if((contactLength == 7 || contactLength == 11) && contactIsDigit) { |
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
// Kahit tanggalin mo na din yung pattern since nag JS validation na naman | |
<input type="text" name="contact" id="contact" maxlength=11 onchange="validateContact()"> | |
function validateContact() { | |
// Palitan mo nalang yung id sa getElementById | |
var contactLength = document.getElementById('contact').value.length; | |
var submitButton = document.getElementById('theSubmit'); | |
if(contactLength == 7 || contactLength == 11) { |
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
from twitter import * | |
import re | |
import numpy as np | |
from wordcloud import WordCloud, STOPWORDS | |
import matplotlib.pyplot as plt | |
ACCESS_TOKEN = "INSERT" | |
ACCESS_SECRET = "INSERT" | |
CONSUMER_KEY = "INSERT" |
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
package com.example.dave.temperatureconverter; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.ArrayAdapter; | |
import android.widget.EditText; | |
import android.widget.Spinner; | |
import android.widget.TextView; |
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
#include <stdio.h> | |
main() | |
{ | |
printf("Units converter:\n\n"); | |
printf("[k] Kilogram (kg)\n[p] Pounds (lbs)\n[o] Ounces(o)\n"); | |
char firstUnit = ' '; | |
char secondUnit = ' '; | |
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.slideshare.net/ShubhamModi5/payroll-management-system-srs | |
http://csis.pace.edu/~marchese/CS389/L9/Use%20Case%20Diagrams.pdf | |
http://documents.mx/documents/use-case-diagrams-payroll-system.html | |
http://www.slideshare.net/DheerajJha3/payroll-management-system-39274782 | |
http://www.diva-portal.org/smash/get/diva2:416795/fulltext01 |
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
INTRODUCTION | |
Payroll is the process in which employees get paid by their employer equivalent to their work done. Every business should have a payroll system especially those bigger companies. This system will allow business owners to automatically take taxes from the paycheck while making sure that the data input is accurate and reliable. This also ensures that these taxes will go to correct government agencies. | |
This system organizes the information and the tasks of employee payment and tax filing. It also includes tracking of work hours, calculations of salaries, withholding of taxes and deductions, and paying checks to the government. | |
One of the problems that resulted in the creation of this kind of systems is the inconsistency of human calculations especially with such large data inputs. This system ensures that this problem will be solved. The operation of the system is simple. The employer will have minimal input on the system, only the employer information and all of the computations regarding the pay |
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
import java.util.LinkedList; | |
import java.util.Queue; | |
import java.util.Scanner; | |
public class Multiples { | |
public static void main(String[] args){ | |
Queue<Integer> multiples = new LinkedList<Integer>(); | |
Scanner scan = new Scanner(System.in); | |
// Get Input |
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
import java.util.*; | |
public class infixtoprefix | |
{ | |
public static void main(String[]args){ | |
Stack<Character> op = new Stack<Character>(); | |
Scanner sc = new Scanner(System.in); | |
System.out.print("Enter infix Expression: "); | |
String infix = sc.nextLine(); | |
String PREFIX = ""; | |
for(int x= infix.length()-1;x>= 0; x--){ |
NewerOlder