Skip to content

Instantly share code, notes, and snippets.

# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" file accompanying this file. This file is distributed
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
extern crate ramp;
use ramp::Int;
#[derive(PartialEq, Clone, Debug)]
struct Point {
x: Int,
y: Int,
}
struct Item {
list: *mut List,
}
impl Item {
fn new(list: *mut List) -> Self {
Item { list: list }
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OV05TV2hpdGVcTlNDb2xvclNwYWNlViRjbGFzc0Iw
ABADgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3Rf
EA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSFBdZGdpa3B7hIyPmKqt
fn dec(tape: &mut Tape) {
tape.tape[tape.position] -= 1;
}
#post-list .post .post__img {
position: absolute;
margin-left: -200px !important;
display: block;
}
.post .post__img img, img.markdown-inline-img {
height: 20px !important;
width: auto !important;
@jaheba
jaheba / .eslintrc
Last active September 9, 2015 12:25
{
"rules": {
"indent": [
2,
4
],
"quotes": [
2,
"single"
],
@jaheba
jaheba / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="ael-comment">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
var quoted = [
'"(?:[^"\\\\]|\\\\.)*"',
"'(?:[^'\\\\]|\\\\.)*'",
"`(?:[^`\\\\]|\\\\.)*`"
],
keywords = ['SELECT', 'FROM', 'DELETE FROM', 'INSERT INTO', 'UPDATE', 'JOIN',
'LEFT JOIN', 'INNER JOIN', 'ORDER BY', 'GROUP BY', 'HAVING', 'WHERE',
'LIMIT', 'VALUES', 'SET'],
values = [
@jaheba
jaheba / gist:7081576
Created October 21, 2013 10:13
sapui5 formatter example
template: {
title: {
parts: [{
path: 'name'
}, {
path: 'surname'
}],
formatter: function(name, surname) {
return name + ' ' + surname
},