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
Document.where('created_at > "2012-1-1 00:00:00"').order('created_at').as_batches(batch_size: 200) do |yolo| | |
yolo.create_or_set_patient && yolo.save rescue next | |
end;nil |
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() { | |
'use strict'; | |
angular.module('someModule').factory('SomeResource', [ | |
'$http', | |
function ($http) { | |
return $http.get('http://example.com/some_resources').then(function (res) { | |
return res.data; | |
}); | |
} |
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() { | |
'use strict'; | |
angular.module('someModule').factory('SomeResource', [ | |
'$http', | |
function ($http) { | |
$http.get('http://example.com/some_resources').then(function (res) { | |
var resources = res.data; | |
return resourceFactory = { | |
all: function (){ |
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() { | |
'use strict'; | |
angular.module('someModule').factory('SomeResource', [ | |
'$http', | |
function ($http) { | |
return $http.get('http://example.com/some_resources').then(function (res) { | |
return res.data; | |
}); | |
} |
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
import {Router} from 'aurelia-router' | |
export class App { | |
static inject () { return [Router] } | |
constructor (router) { | |
this.router = router | |
this.router.configure(config => { | |
config.title = "SampleApp" | |
config.map([ |
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
<template> | |
<button click.delegate="clickHandler1($event)"></button> | |
<button click.delegate="clickHandler2(myVar, $event)"></button> | |
<typeahead select.delegate="selectItem1($item)"></typeahead> | |
<typeahead select.delegate="selectItem2(myVar, $item)"></typeahead> | |
</template> |
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
<template> | |
<import from="./class" as="au-class"></import> | |
<section> | |
<div au-class.bind="myClasses"> | |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | |
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | |
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | |
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | |
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non |
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 | |
module SomeMod | |
module DSL | |
def self.included(base) | |
base.extend ClassMethods | |
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
####################################### | |
# https://projecteuler.net/problem=11 # | |
####################################### | |
GRID = "08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 | |
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 | |
81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 | |
52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91 | |
22 31 16 71 51 67 63 89 41 92 36 54 22 40 40 28 66 33 13 80 | |
24 47 32 60 99 03 45 02 44 75 33 53 78 36 84 20 35 17 12 50 |
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
version: "3.7" | |
services: | |
project-zomboid: | |
image: ghcr.io/cyrale/project-zomboid | |
restart: unless-stopped | |
environment: | |
SERVER_NAME: "pzserver" | |
ADMIN_PASSWORD: "pzserver-password" | |
ports: |
OlderNewer