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
| using System; | |
| using Microsoft.VisualStudio.TestTools.UnitTesting; | |
| using NUnit.Framework; | |
| using WatiN.Core; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace Watin_Tests |
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
| using UnityEngine; | |
| using System.Collections; | |
| using UnityEditor; | |
| using System.Text; | |
| public class ObjectReplacer : ScriptableWizard | |
| { | |
| private Transform[] transforms = Selection.GetTransforms(SelectionMode.TopLevel | SelectionMode.ExcludePrefab); | |
| private static string strShowDialogsKey = "ObjectReplacer.ShowDialogs"; |
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
| bool Math::IsOrthonormal(Vector p, Vector q) { | |
| int i = 0; | |
| if (p == q) | |
| i = 1; | |
| return (DotProduct(p,q) == i); | |
| } | |
| bool Math::IsOrthonormal(std::vector<Vector> v) | |
| { |
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
| # /etc/bash.bashrc | |
| # | |
| # https://wiki.archlinux.org/index.php/Color_Bash_Prompt | |
| # | |
| # This file is sourced by all *interactive* bash shells on startup, | |
| # including some apparently interactive shells such as scp and rcp | |
| # that can't tolerate any output. So make sure this doesn't display | |
| # anything or bad things will happen ! | |
| # Test for an interactive shell. There is no need to set anything |
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
| # defmodule FizzBuzz do | |
| # def upto(n) when n > 0 do | |
| # 1..n |> Enum.map(&fizzbuzz/1) | |
| # end | |
| # | |
| # defp fizzbuzz(n) when rem(n, 3) == 0 and rem(n, 5) == 0, do: "FizzBuzz" | |
| # defp fizzbuzz(n) when rem(n, 3) == 0, do: "Fizz" | |
| # defp fizzbuzz(n) when rem(n, 5) == 0, do: "Buzz" | |
| # defp fizzbuzz(n), do: n | |
| # 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
| from os import listdir # to display available input files | |
| import heapq # for priority queue | |
| import math | |
| from time import time # for run times | |
| import matplotlib.pyplot as plt # to display solutions | |
| import numpy as np #for polygon | |
| %matplotlib inline | |
| print('Available input files:') | |
| dataDir = 'data2' # directory with input files |
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
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class PhoneCamera : MonoBehaviour | |
| { | |
| private bool camAvailable; | |
| private WebCamTexture backCam; | |
| private Texture defaultBackground; |
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
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class ScrollRectSnap : MonoBehaviour | |
| { | |
| public RectTransform panel;//Holds scrollPanel | |
| public Button[] button; | |
| public RectTransform center; //Center to compare the distance for each button |
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
| def solution(N): | |
| cnt = 0 | |
| result = 0 | |
| found_one = False | |
| i = N | |
| while i: | |
| print 'i is : ', i | |
| if i & 1 == 1: |
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
| def solution(A,K): | |
| l = len(A) | |
| if (l == 0): | |
| return A | |
| if (K>l): | |
| K = K % len(A) | |
| x = A[:l-K] |
OlderNewer