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
--- | |
:sources: | |
- http://gems.rubyforge.org | |
- http://gems.github.com | |
gem: --no-ri --no-rdoc |
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
.btn-primary { | |
background-color: #08c; | |
border-color: #08c; | |
color: #fff; | |
background-color: #007ab8; | |
background-image: -moz-linear-gradient(top, #08c, #006699); | |
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#08c), to(#006699)); | |
background-image: -webkit-linear-gradient(top, #08c, #006699); | |
background-image: -o-linear-gradient(top, #08c, #006699); | |
background-image: linear-gradient(to bottom, #08c, #006699); |
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
#!/usr/bin/env ruby | |
require 'httparty' | |
require 'hipchat' | |
require 'yaml' | |
LAST_MESSAGE_FILE = 'tmp/last_github_status.yml' | |
HIPCHAT_API_KEY = 'secret' | |
HIPCHAT_ROOM = 'Notifications' |
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 Spark = require("../lib/spark"); | |
var five = require("johnny-five"); | |
var board = new Spark({ | |
token: process.env.SPARK_TOKEN, | |
deviceId: process.env.SPARK_DEVICE_ID | |
}); | |
board.on("ready", function() { | |
console.log("CONNECTED"); |
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 Spark = require("../lib/spark"); | |
var five = require("johnny-five"); | |
var board = new Spark({ | |
token: process.env.SPARK_TOKEN, | |
deviceId: process.env.SPARK_DEVICE_ID | |
}); | |
//require the Twilio module and create a REST client | |
var client = require('twilio')(process.env.TWILIO_SID, process.env.TWILIO_AUTH_TOKEN); |
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
// Using https://github.com/mendhak/angular-intro.js | |
// I'm trying to set ngIntroAutostart from my HomePageApp controller | |
// ngIntroAutostart defined here: https://github.com/mendhak/angular-intro.js/blob/master/src/angular-intro.js#L16 | |
// my app and controller | |
var HomePageApp = angular.module("HomePageApp", ["angular-intro"]); | |
HomePageApp.controller('HomePageTourController', function($scope, $http) { | |
$scope.autostart = "true"; |
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" encoding="UTF-8"?> | |
<opml version="1.1"> | |
<!--Generated by NewsBlur - www.newsblur.com--> | |
<head> | |
<title>NewsBlur Feeds</title> | |
<dateCreated>2013-07-12 03:43:24.605173</dateCreated> | |
<dateModified>2013-07-12 03:43:24.605173</dateModified> | |
</head> | |
<body> | |
<outline text="Tech News" title="Tech News"> |
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
class UtilityController extends BaseController { | |
public function upload() | |
{ | |
$file = Input::file('Filedata'); | |
$name = Date("now").'-'.$file->getClientOriginalName(); | |
$uploadSuccess = $file->move(public_path().'/uploads',$name); | |
if( $uploadSuccess ) { | |
return Response::json(array( | |
"status"=>"200", |
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
/*** @jsx React.DOM */ | |
//var React = require('React'); | |
var Attachment = React.createClass({ | |
getInitialState: function() { | |
return { | |
intent: false | |
}; | |
}, |
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
/** | |
* @jsx React.DOM | |
*/ | |
var Attachment = React.createClass({ | |
getDefaultProps: function() { | |
return { | |
'preventCaching': false, | |
'buttonText': I18n.t('defaults.browse'), | |
'debug': false, |
OlderNewer