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
# require 'ap' | |
def months_between(d1, d2) | |
(d2.year * 12 + d2.month) - (d1.year * 12 + d1.month) | |
end | |
today = Date.today | |
first = (today - 10.weeks).beginning_of_month | |
last = today.end_of_month |
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
require "set" | |
class Batch | |
def initialize(results = {}, &blk) | |
@ids = ::Set.new | |
@blk = blk | |
@promises = {} | |
@results = results | |
end |
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
package main | |
import ( | |
"fmt" | |
"image" | |
"math" | |
"os" | |
"sync" | |
"github.com/disintegration/gift" |
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
require "formula" | |
class Hiptext < Formula | |
homepage "https://github.com/jart/hiptext" | |
head "https://github.com/jart/hiptext.git", :branch => "master" | |
depends_on "pkg-config" => :build | |
depends_on "ragel" => :build | |
# depends_on :libpng | |
depends_on "jpeg" |
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
Learn tab in launcher, free examples. | |
moving camera: | |
l+r at same time | |
Hold right, + wasd+qe move camera | |
fog: quickest way to get a basic background | |
light: atmosphere option -> sun |
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
hello |
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
// curl https://api.heroku.com/schema -H "Accept: application/vnd.heroku+json; version=3" | |
{ | |
"$schema": "http://interagent.github.io/interagent-hyper-schema", | |
"definitions": { | |
"account-feature": { | |
"description": "An account feature represents a Heroku labs capability that can be enabled or disabled for an account on Heroku.", | |
"$schema": "http://json-schema.org/draft-04/hyper-schema", | |
"stability": "production", | |
"strictProperties": true, | |
"title": "Heroku Platform API - Account Feature", |
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
'-----------< Yet Another 3D Demo/Engine v2.0 >--------- | |
'By Dennis Hotson (djdennie69@hotmail.com) | |
' | |
'INSTRUCTIONS: | |
'* Use the mouse to look around | |
'* Use arrow keys OR "WASD" to move/strafe | |
'* Use the - and + keys to move up/down | |
'* Click left mouse button to rotate cube | |
'* Click right mouse button to rotate square | |
' |
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 Bugsnag; | |
class ErrorHandler | |
{ | |
private | |
$client, | |
$oldExceptionHandler, | |
$oldErrorHandler, |
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
diff --git a/lib/Pheasant/Database/Mysqli/ResultIterator.php b/lib/Pheasant/Database/Mysqli/ResultIterator.php | |
index 17efd64..dbcd755 100755 | |
--- a/lib/Pheasant/Database/Mysqli/ResultIterator.php | |
+++ b/lib/Pheasant/Database/Mysqli/ResultIterator.php | |
@@ -5,7 +5,7 @@ namespace Pheasant\Database\Mysqli; | |
class ResultIterator implements \SeekableIterator, \Countable | |
{ | |
private $_result; | |
- private $_position; | |
+ private $_position = 0; |
NewerOlder