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 pygame, sys | |
| from pygame.locals import * | |
| pygame.init() | |
| DISPLAYSURF = pygame.display.set_mode((400, 300)) | |
| pygame.display.set_caption('Hello World!') | |
| while True: # main game loop | |
| for event in pygame.event.get(): | |
| if event.type == QUIT: |
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
| var testObject = { | |
| pi: Math.PI, | |
| e: Math.E, | |
| one: 1, | |
| x: 1.5, | |
| str: "1.2345" | |
| }; | |
| var places = 2, | |
| json = JSON.stringify(testObject, function(key, value) { |
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
| # -*- encoding: UTF-8 -*- | |
| import os | |
| import httplib2 | |
| # pip install --upgrade google-api-python-client | |
| from oauth2client.file import Storage | |
| from apiclient.discovery import build | |
| from oauth2client.client import OAuth2WebServerFlow |
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 <complex.h> | |
| #define dc double complex | |
| dc | |
| Y(dc | |
| V, | |
| dc B,dc c){ | |
| return | |
| (cabs (V)<6)?(c?Y(V *V+ | |
| B,B,c-1):c):(2+c-4*cpow |
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
| var Youtube = (function () { | |
| 'use strict'; | |
| var video, results; | |
| var getThumb = function (url, size) { | |
| if (url === null) { | |
| return ''; | |
| } | |
| size = (size === null) ? 'big' : size; |
NewerOlder