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
| body { | |
| padding-left: 11em; | |
| font-family: Georgia, "Times New Roman", | |
| Times, serif; | |
| color: purple; | |
| background-color: #d8da3d | |
| } | |
| h1 { | |
| font-family: Helvetica, Geneva, Arial, | |
| SunSans-Regular, sans-serif } |
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
| App::before(function($request) | |
| { | |
| header('Access-Control-Allow-Origin: *'); | |
| header('Access-Control-Allow-Methods: GET, POST, OPTIONS'); | |
| header('Access-Control-Allow-Headers: Origin, Content-Type, Accept, Authorization, X-Request-With'); | |
| header('Access-Control-Allow-Credentials: true'); | |
| }); |
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 app = angular.module('application', []); | |
| app.controller('storeController', function ($scope) { | |
| $scope.sushi = { | |
| name: 'Maguro', | |
| price: 200, | |
| description: 'Fatu tuna' | |
| }; | |
| }); |
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
| # 3 and 7 == "FizzBang" | |
| # 5 and 7 == "BuzzBang" | |
| class FizzBuzz | |
| def execute | |
| output = (0..100).to_a | |
| output.map { |e| | |
| if e % 15 == 0 | |
| "FizzBuzz" | |
| elsif e % 3 == 0 | |
| "Fizz" |
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
| folder_path = ARGV[0].to_s + "/" | |
| prefix = ARGV[1].to_s | |
| Dir.glob(folder_path + "*").sort.each do |f| | |
| filename = File.basename(f, File.extname(f)) | |
| File.rename(f, folder_path + prefix + "_" + filename + File.extname(f)) | |
| 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
| // | |
| // Orders.m | |
| // sbrand-factory-xcode | |
| // | |
| // Created by Phawin on 5/13/2557 BE. | |
| // Copyright (c) 2557 codium. All rights reserved. | |
| // | |
| #import "Orders.h" | |
| #import "JobManager.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
| This message was created automatically by mail delivery software. | |
| A message that you sent has not yet been delivered to one or more of its | |
| recipients after more than 48 hours on the queue on d1.host.applebred.net. | |
| The message identifier is: 1WhTHy-00050R-5A | |
| The date of the message is: Tue, 6 May 2014 03:19:23 -0700 | |
| The subject of the message is: Maxmeocum | |
| The addresses to which the message has not yet been delivered are: |
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
| from django.shortcuts import get_object_or_404 | |
| class UserView(DetailView): | |
| template_name = 'template.html' | |
| #model = User | |
| def get_object(self): | |
| return get_object_or_404(User, id=self.kwargs['custom_patterm']) |
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
| static void swap (List<Integer>list1, List<Integer>list2){ | |
| int temp; | |
| for ( int i = 0; i <= chk(list1,list2)-1;i++){ | |
| temp = list1.get(i).intValue(); | |
| list1.set(i, list2.get(i).intValue()); | |
| list2.set(i, temp); | |
| } | |
| } | |
| static int chk(List<Integer> list1,List<Integer>list2){ | |
| if (list1.size() >= list2.size()){ |
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
| import java.util.Scanner; | |
| public class CompareChar { | |
| public static void main( String[] args){ | |
| Scanner kb = new Scanner(System.in); | |
| Boolean out_text = false; | |
| int counter = 0; | |
| String t1 = "KMITL"; | |
| String t2 = "kmitl"; |