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
// for Unity (C#) | |
public static void Shuffle<T>(this List<T> list) | |
{ | |
System.Random rnd = new System.Random(); | |
int n = list.Count; | |
while (n > 1) { | |
n--; | |
int k = rnd.Next(n + 1); | |
T obj = list[k]; | |
list[k] = list[n]; |
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 datetime | |
import httplib2 | |
# to see in detail what's going on, uncomment | |
# httplib2.debuglevel = 4 | |
from apiclient.discovery import build | |
from oauth2client.client import OAuth2Credentials, OAuth2WebServerFlow | |
if __name__ == "__main__": |
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
/* gmail-refreshest: a custom gmail css by @roycifer */ | |
/* some button styles borrowed from twitter bootstrap */ | |
/* @match mail.google.com */ | |
body, td, input, textarea, select {font-family:"Helvetica Neue",helvetica,arial,sans-serif;} | |
.w-asV > .nH:last-child {display: none;} | |
.w-asV > .nH > .no , #gbx1, #gbx2{background-image: -webkit-linear-gradient(top,white,#F7F7F7);} | |
.w-as1.nr{height:27px;border-radius:3px;} | |
.gbeti#gb .gbqldr, .gbet#gbqlw .gbqldr, .gbesi#gb .gbqldr, .gbes#gbqlw .gbqldr{max-height:35px;margin-top:3px;} | |
.gbqfqw{border-radius:3px;} |