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 <stdlib.h> | |
| #include <string.h> | |
| #include <conio.h> | |
| #define MAX 100 | |
| struct PERSON { | |
| char fName[20]; /* emri i nje personi ne librin e adresave */ | |
| char lName[20]; /* mbiemri i nje personi ne librin e adresave */ | |
| char id[20]; /* ID i nje personi ne librin e adresave */ |
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 $(str) { | |
| return document.querySelector(str); | |
| } | |
| // Test mblidh | |
| var test1 = mblidh(3, 5); | |
| var test2 = mblidh(5, -8); | |
| var test3 = mblidh(0, 0.1); | |
| var mblidh = 0; |
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
| // http://aichallenges.appspot.com/intro | |
| function rotateRow(row) { | |
| var len = row.length; | |
| for (var i = 0; i < len/2; i++) { | |
| var tmp = row[i]; | |
| row[i] = row[len - 1 - i]; | |
| row[len - 1 - i] = tmp; | |
| } | |
| return row; |
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
| /** | |
| * Google Code Jam 1 | |
| * Pset1.java | |
| */ | |
| import java.io.*; | |
| import java.util.Scanner; | |
| public class Pset1 { |
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
| package com.aziflaj.exchangeagram; | |
| import android.app.Application; | |
| import com.parse.Parse; | |
| public class ExchangeagramApplication extends Application { | |
| @Override | |
| public void onCreate() { |
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 | |
| // Create a user | |
| $user = new User(); | |
| $user->setLastName("Bond"); | |
| $user->setFirstName("James"); | |
| // store a user | |
| $entityManager = $this->getDoctrine()->getManager(); | |
| $entityManager->persist($user); | |
| $entityManager->flush(); |
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 | |
| // The User model | |
| class User | |
| { | |
| private $firstName; | |
| private $lastName; | |
| public function getFirstName() | |
| { | |
| return $this->firstName; |
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
| user = User.new | |
| user.last_name = 'Bond' | |
| user.first_name = 'James' | |
| user.save |
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
| class User < ActiveRecord::Base | |
| # The rest of your model | |
| end |
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 Illuminate\Database\Eloquent\Model; | |
| class User extends Model | |
| { | |
| // The rest of your model | |
| } |