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
<snippet> | |
<!-- Example: Hello, ${1:this} is a ${2:snippet}. --> | |
<content><![CDATA[ | |
import ipdb; ipdb.set_trace() | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>ipdb</tabTrigger> | |
<description>Set an ipdb breakbpoint with ipdb.set_trace</description> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.python, keyword.control.import.python</scope> |
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
var alt = require('../alt'); | |
var TodoActions = require('./TodoActions'); | |
// Reactive data layer | |
var Todos = alt.Todos; | |
class TodoStore { | |
constructor() { | |
this.bindActions(TodoActions); |
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
(function(window) { | |
'use strict'; | |
window.SrcSet = { | |
/** | |
* Converts srcset value into JS objects | |
* e.g. './image1.jpg 1100w, ./image1_big.jpg 1500w, ./image1_small.jpg' | |
* yields: | |
* [ | |
* { src: './image1.jpg', width: 1100 }, |
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
<?php | |
namespace Doctrine\ODM\MongoDB\Tests\Functional\Ticket; | |
use Doctrine\Common\Collections\ArrayCollection, | |
Documents\Functional\EmbeddedTestLevel0, | |
Documents\Functional\EmbeddedTestLevel1, | |
Documents\Functional\EmbeddedTestLevel2; | |
class MODM140Test extends \Doctrine\ODM\MongoDB\Tests\BaseTest |
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
<?php | |
namespace Doctrine\ODM\MongoDB\Tests\Functional; | |
use Doctrine\Common\Collections\ArrayCollection, | |
Documents\Functional\EmbeddedTestLevel0, | |
Documents\Functional\EmbeddedTestLevel1, | |
Documents\Functional\EmbeddedTestLevel2; | |
class MoveEmbeddedDocuments extends \Doctrine\ODM\MongoDB\Tests\BaseTest |
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
/* make links move down 1px when clicked */ | |
a:active { | |
position: relative; | |
top: 1px; | |
} |
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
<?xml version="1.0"?> | |
<Invoices> | |
<Invoice> | |
<Type>ACCREC</Type> | |
<Contact> | |
<ContactID>427f9f6c-8d02-403b-9e8b-e22a77a33c05</ContactID> | |
</Contact> | |
<InvoiceNumber>11001691</InvoiceNumber> | |
<DueDate>2011-10-30</DueDate> | |
<Date>2011-10-24</Date> |
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
var VM = { | |
cpu: { | |
ip: 0x00, | |
r0: 0x00, | |
r1: 0x00, | |
r2: 0x00, | |
r3: 0x00, | |
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 <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <time.h> | |
#include <sys/types.h> | |
#include <sys/mman.h> | |
#include <sys/utsname.h> |
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
#!/bin/sh | |
# © Andrew Cobby <cobby@cobbweb.me> | |
# Creates shortcuts to log into remote servers | |
# Setup private/public key auth for passwordless logins | |
# USAGE: $ ./connect-to.sh example | |
# Defaults | |
user="root" |
OlderNewer