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
html { | |
font-size: 12px ; | |
font-family: 'Open Sans', sans-serif; | |
} | |
div { | |
position: relative; | |
box-sizing: border-box; | |
} |
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
void CMyView::DrawSomething(CDC* pDC, bool m) { | |
CPen newPen(PS_SOLID, VariablePenWidth(5), RGB(0, 0, 0)); | |
CPen* oldPen = pDC->SelectObject(&newPen); | |
CBrush brush; | |
brush.CreateSolidBrush(RGB(128, 224, 255)); | |
CBrush* oldBrush = (CBrush*)pDC->SelectObject(&brush); | |
int prevMode = SetGraphicsMode(pDC->m_hDC,GM_ADVANCED); | |
XFORM Xform, XformOld; |
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
void CLab1View::OnDraw(CDC* pDC) | |
{ | |
CLab1Doc* pDoc = GetDocument(); | |
ASSERT_VALID(pDoc); | |
if (!pDoc) | |
return; | |
// Setup coordinate system | |
GetClientRect(&clientRect); | |
pDC->SetMapMode(MM_ISOTROPIC); |
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
#include "StdAfx.h" | |
#include "GLRenderer.h" | |
#include "GL\gl.h" | |
#include "GL\glu.h" | |
#include "GL\glaux.h" | |
#include "GL\glut.h" | |
#include "DImage.h" | |
#pragma comment(lib, "GL\\glaux.lib") | |
CGLRenderer::CGLRenderer(void) |
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
DEFAULT = { | |
name: 'Marko Pavlovic', | |
email: '[email protected]' | |
} | |
puts 'Enter authors names:' | |
names = gets | |
puts 'Enter authors emails:' | |
emails = gets |
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
defmodule Parallel do | |
def map(enumerable, fun) do | |
parent = self | |
chunk_size = chunk_size(enumerable) | |
enumerable | |
|> Enum.chunk(chunk_size, chunk_size, []) | |
|> Enum.map(fn chunk -> | |
spawn fn -> map_chunk(parent, chunk, fun) end | |
end) |
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
public class TeaTest { | |
@Test | |
public void testEncryptDecryptBlock() { | |
Configuration config = new Configuration(); | |
config.set("blockLength", "8"); | |
config.set("key", "111 222 333 444"); | |
Tea instance = new Tea(config); |
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
export interface Recipe { | |
id: string | |
title: string | |
} |
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
export class ApiEndpoint<TInput, TOutput>{ | |
public path: string[] = []; | |
public pathStr() { return '/' + this.path.join('/') } | |
} |
OlderNewer