Skip to content

Instantly share code, notes, and snippets.

// SO 29538557
void main() {
print({'name': 'jhon', 'lastName': 'Doe'} ==
{'name': 'jhon', 'lastName': 'Doe'});
}
@zoechi
zoechi / index.html
Last active August 29, 2015 14:18 — forked from kasperpeulen/index.html
@zoechi
zoechi / dart-hl.xml
Created March 12, 2015 13:29
AsciiDoc XSLT/Docbook Dart language definition for syntax highlighting
<?xml version="1.0" encoding="UTF-8"?>
<!--
Syntax highlighting definition for Dart
xslthl - XSLT Syntax Highlighting
http://sourceforge.net/projects/xslthl/
Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks
This software is provided 'as-is', without any express or implied
@zoechi
zoechi / asciidoc-dblatex.sty
Created March 12, 2015 13:25
AsciiDoc dblatex.sty with Dart support
%%
%% This style is derived from the docbook one.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{asciidoc}[2008/06/05 AsciiDoc DocBook Style]
%% Just use the original package and pass the options.
\RequirePackageWithOptions{docbook}
% Sidebar is a boxed minipage that can contain verbatim.
% Changed shadow box to double box.
#!/bin/bash
# ~ doesn't work in string resolution use /home/$USER/ instead
DOWNLOAD_DIR="/home/$USER/Downloads/Dart"
CURRENT_VERSION_FILE="VERSION_current"
NEW_VERSION_FILE="VERSION_new"
#DOWNLOAD_VERSION_FILE="VERSION_download"
#VERSION_URL="http://gsdview.appspot.com/dart-archive/channels/dev/release/latest/VERSION"
VERSION_URL="http://gsdview.appspot.com/dart-archive/channels/be/raw/latest/VERSION"
#EDITOR_LINUX64_URL="http://gsdview.appspot.com/dart-archive/channels/dev/release/latest/editor/darteditor-linux-x64.zip"
@zoechi
zoechi / designer.html
Created July 17, 2014 08:33
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@zoechi
zoechi / list files or directories
Created June 11, 2013 10:08
List files, list directories
ls -l | egrep -v '^d' # files
ls -l | egrep '^d' # directories
@zoechi
zoechi / CountFiles
Created June 10, 2013 12:39
Count files in a directory and all subdirectories
find . -type f | wc -l
@zoechi
zoechi / DHCP renew
Created June 2, 2013 17:05
DHCP renew
dhclient -r # release
dhclient # get ip