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 "../../../spec_helper" | |
require "http/client" | |
require "json" | |
describe "GraphQL::Users::Query" do | |
it "admin can see all users" do | |
admin, user = make_test_users | |
users = graphql_request(admin) | |
users.size.should eq 2 | |
end |
We can't make this file beautiful and searchable because it's too large.
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
iata,name,city,state,country,latitude,longitude | |
00A,Total Rf Heliport,Bensalem,US-PA,US,40.07080078125,-74.93360137939450 | |
00AA,Aero B Ranch Airport,Leoti,US-KS,US,38.704022,-101.473911 | |
00AK,Lowell Field,Anchor Point,US-AK,US,59.94919968,-151.695999146 | |
00AL,Epps Airpark,Harvest,US-AL,US,34.86479949951170,-86.77030181884770 | |
00AR,Newport Hospital & Clinic Heliport,Newport,US-AR,US,35.6087,-91.254898 | |
00AS,Fulton Airport,Alex,US-OK,US,34.9428028,-97.8180194 | |
00AZ,Cordes Airport,Cordes,US-AZ,US,34.305599212646500,-112.16500091552700 | |
00CA,Goldstone /Gts/ Airport,Barstow,US-CA,US,35.350498199500000,-116.888000488 | |
00CL,Williams Ag Airport,Biggs,US-CA,US,39.427188,-121.763427 |
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 FindProxyForURL(url, host) { | |
if (host.match(/\.office\.kingsds.network$/)) return "PROXY office-gw.kingsds.network:3128"; | |
if (host.match(/\.devserver\.office\.kingsds.network$/)) return "PROXY office-gw.kingsds.network:3128"; | |
} |
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
$ docker-compose -f docker-compose.yml -f docker-compose.dev.yml up | |
Creating network "hasura-ci-test_internal" with the default driver | |
Creating network "hasura-ci-test_external" with the default driver | |
Creating volume "hasura-ci-test_db_data" with default driver | |
Creating hasura-ci-test_postgres_1 ... done | |
Creating hasura-ci-test_graphql-engine_1 ... done | |
Attaching to hasura-ci-test_postgres_1, hasura-ci-test_graphql-engine_1 | |
postgres_1 | The files belonging to this database system will be owned by user "postgres". | |
postgres_1 | This user must also own the server process. | |
postgres_1 | |
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
[ 0.000000] Booting Linux on physical CPU 0x0 | |
[ 0.000000] Linux version 4.14.87-v7+ (dom@dom-XPS-13-9370) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1178 SMP Tue Dec 11 14:47:38 GMT 2018 | |
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d | |
[ 0.000000] CPU: div instructions available: patching division code | |
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache | |
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2 | |
[ 0.000000] Memory policy: Data cache writealloc | |
[ 0.000000] cma: Reserved 8 MiB at 0x3ac00000 | |
[ 0.000000] On node 0 totalpages: 242688 | |
[ 0.000000] free_area_init_node: node 0, pgdat 80c85300, node_mem_map ba39f000 |
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
<h2>Testing a High Chart</h2> | |
<script type="text/javascript"> | |
(function() { | |
var onload = window.onload; | |
window.onload = function(){ | |
if (typeof onload == "function") onload(); | |
var options = { "title": { "text": "Population vs GDP For 5 Big Countries [2009]" },"legend": { "align": "right","verticalAlign": "top","y": 75,"x": -50,"layout": "vertical" },"xAxis": { "categories": [ "United States","Japan","China","Germany","France" ] },"yAxis": [ { "title": { "text": "GDP in Billions","margin": 70 } },{ "title": { "text": "Population in Millions" },"opposite": true } ],"tooltip": { "enabled": true },"credits": { "enabled": false },"plotOptions": { "line": { "animation": false,"enableMouseTracking": false,"shadow": false } },"chart": { "defaultSeriesType": "column","renderTo": "chart-div" },"subtitle": { },"series": [{ "name": "GDP in Billions","yAxis": 0,"data": [ 14119,5068,4985,3339,2656 ] },{ "name": "Population in Millio |
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 AppDelegate | |
attr_accessor :root_view_controller, :frame, :window | |
def application(application, didFinishLaunchingWithOptions:launchOptions) | |
create_root_view_controller | |
create_frame | |
create_window | |
create_text_field | |
true | |
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
KC:myapp$ rake newclear --trace | |
** Invoke newclear (first_time) | |
** Execute newclear | |
Cleaning Project... | |
[deprecated] dependency('name', options) syntax is deprecated please use a gradle config string, eg: dependency('com.joanzapata.pdfview:android-pdfview:1.0.+@aar') | |
Delete ./build | |
Delete /Users/KC/Library/RubyMotion/build | |
Delete vendor/Gradle |
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 'opencl_ruby_ffi' | |
require'ffi' | |
module BLAS | |
extend FFI::Library | |
ffi_lib '/Users/KC/Programming/openCL/clBLAS/clBLAS-master/library/libclBLAS.dylib' | |
enum :cl_blas_order,[ :cl_blas_row_major, :cl_blas_column_major ] | |
enum :cl_blas_transpose,[ :cl_blas_no_trans, :cl_blas_trans, :cl_blas_conj_trans ] | |
enum :cl_blas_status, [ | |
:cl_blas_success, ::OpenCL::SUCCESS, |
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
n_times = 2^16; | |
a_in = rand(1,n_times); | |
tic | |
a_in(:) = a_in(:) + 5.0; | |
toc |
NewerOlder