Skip to content

Instantly share code, notes, and snippets.

View nuclearsandwich's full-sized avatar

Steven! Ragnarök nuclearsandwich

View GitHub Profile
@nuclearsandwich
nuclearsandwich / gist:2963591
Created June 21, 2012 03:14 — forked from tjackowiak/gist:2844085
play-windows run error
PLATFORM VERSION INFO
Windows : 6.1.7600.0 (Win32NT)
Common Language Runtime : 4.0.30319.544
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.544 (RTMLDR.030319-5400)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
SOURCES
Deployment url : http://play-windows.s3.amazonaws.com/Play.application
@nuclearsandwich
nuclearsandwich / debate.rb
Created July 5, 2012 18:16 — forked from keppy/gist:3042484
Method help
# models/debate.rb
class Debate < ActiveRecord::Base
attr_accessible :opposition_id, :proposition_id, :title
validates :proposition_user_id, presence: true
validates :proposition_id, presence: true
validates :title, presence: true
has_many :users
has_one :proposition
@nuclearsandwich
nuclearsandwich / cliptext.rb
Last active December 10, 2015 02:58 — forked from noahcoad/cliptext.rb
change tabs to two spaces. part deux
#!/usr/bin/env ruby
# Places the clipboard contents into a new temp text
# file and opens the text file in the default text editor
require 'ftools'
# find an unused file name
a = 1
folder = File.expand_path "~/Documents/texts/temp"
<?php
define('AWS_KEY','YOUR_AWS_KEY_HERE');
define('AWS_SECRET','YOUR_AWS_SECRET_HERE');
require_once('AWSSDKforPHP/sdk.class.php');
require_once('AWSSDKforPHP/extensions/s3streamwrapper.class.php');
$s3 = new AmazonS3(array(
'key' => AWS_KEY,
'secret' => AWS_SECRET,
<h2 class="section-title">Colours</h2>
<!-- Add your own colour swatches down here! -->
<ul class="colours">
<li>
<!-- We put our style just in line here -->
<span class="swatch" style="background: #85D4E3;"></span>
<!-- Here just a description and the hex code again (for copy/pasting in a pinch) -->
<p class="label">blue | #85D4E3</p>
</li>

[x] a [ ] b

  • c
  • d

If user is careless, forgetting to put "- " before "[ ]", TODO list could get buggy.

Steps to reproduce bug:

  • on parsed MD page of list above, tick "c" to note that "c" is done.
  • Now, edit the file.

[ ] a [x] b

  • c
  • d

If user is careless, forgetting to put "- " before "[ ]", TODO list could get buggy.

Steps to reproduce bug:

  • on parsed MD page of list above, tick "c" to note that "c" is done.
  • Now, edit the file.

####API 接口文档

字段 类型 是否必须 说明
userName string true 用户名
password string true 密码
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: master
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: master
ament/ament_lint:
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: master
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: master
ament/ament_lint: