Skip to content

Instantly share code, notes, and snippets.

View iamanas20's full-sized avatar
🎯
Focusing

Anas Latique iamanas20

🎯
Focusing
  • Utrecht, Netherlands
  • 17:56 (UTC +02:00)
  • X @achxvi
View GitHub Profile
@hqf00342
hqf00342 / DatagridStyle.xaml
Created September 4, 2015 03:21
Style for wpf Datagrid
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!--DataGrid用のスタイル-->
<Style TargetType="DataGrid">
<!-- Make the border and grid lines a little less imposing -->
<Setter Property="BorderBrush" Value="#DDDDDD" />
<Setter Property="HorizontalGridLinesBrush" Value="#DDDDDD" />
<Setter Property="VerticalGridLinesBrush" Value="#DDDDDD" />
<Setter Property="RowStyle">
@geoffb
geoffb / simple-canvas-rotation.html
Last active February 23, 2023 20:56
A simple example of rotating a rectangle using HTML5 canvas.
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Canvas Transformation</title>
</head>
<body>
<script>
// Create our canvas and append it to the document body
var stage = document.createElement("canvas");
@briancavalier
briancavalier / simple-promise-retry.js
Created February 24, 2011 18:35
A few general patterns for retries using promises
function keepTrying(otherArgs, promise) {
promise = promise||new Promise();
// try doing the important thing
if(success) {
promise.resolve(result);
} else {
setTimeout(function() {
keepTrying(otherArgs, promise);