scala> 3.
% + > >>> isInstanceOf toDouble toLong unary_+ |
& - >= ^ toByte toFloat toShort unary_-
* / >> asInstanceOf toChar toInt toString unary_~
This file contains hidden or 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
license: gpl-3.0 |
This file contains hidden or 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
quant=> \d+ regsho | |
Table "public.regsho" | |
Column | Type | Modifiers | Storage | Stats target | Description | |
-------------+--------+-----------+----------+--------------+------------- | |
Symbol | text | | extended | | | |
Date | text | | extended | | | |
ShortVolume | bigint | | plain | | | |
TotalVolume | bigint | | plain | | | |
Indexes: | |
"ix_regsho_Date" btree ("Date") |
This file contains hidden or 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
# Jest Example | |
This is directly from the jest website. | |
## Requirements | |
- node | |
- npm | |
## Install |
This file contains hidden or 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 ( | |
"flag" | |
"fmt" | |
"image" | |
_ "image/gif" | |
_ "image/jpeg" | |
_ "image/png" | |
"log" |
This file contains hidden or 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/bash | |
TIMING=$1 | |
SCRIPT=$2 | |
W=$WINDOWID | |
rm -rf /tmp/script-replay-gifs/ | |
mkdir /tmp/script-replay-gifs/ | |
t=$(mktemp) |
This file contains hidden or 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
/* | |
** Client side - /public/src/app.js | |
*/ | |
var myApp = { | |
// Collections | |
Collections: { | |
list: Backbone.Collection.extend() | |
}, | |
// Views |
This file contains hidden or 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 LazyCollection extends Backbone.Collection | |
indexQuerystring: 'index' | |
index: 1 | |
lastLength: 0 | |
fetch: (options) -> | |
options or= {} | |
if options.reset | |
@index = 1 | |
@lastLength = 0 | |
else |
This file contains hidden or 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 'pp' | |
require 'socket' | |
module BluetoothPolarHrm | |
AF_BLUETOOTH=31 # these are correct for the Linux Bluez stack | |
BTPROTO_RFCOMM=3 | |
class << self | |
def connect_bt address_str,channel=1 | |
bytes=address_str.split(/:/).map {|x| x.to_i(16) } | |
s=Socket.new(AF_BLUETOOTH, :STREAM, BTPROTO_RFCOMM) |
This file contains hidden or 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
import boto | |
from moto import mock_s3 | |
from model import MyModel | |
@mock_s3 | |
def test_save_study(): | |
conn = boto.connect_s3() | |
conn.create_bucket('mybucket') |
NewerOlder