Method | Uses Default Accessor | Validations | Callbacks | Touches updated_at | Readonly check |
---|---|---|---|---|---|
update | ✅ | ✅ | ✅ | ✅ | ✅ |
update_attributes | ✅ | ✅ | ✅ | ✅ | |
update_columns | ✅ | ||||
User::update | ✅ | ✅ | ✅ | ✅ | ✅ |
User::update_all |
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
diff --git a/PKGBUILD b/PKGBUILD | |
index 0052c3a..ed48961 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -10,31 +10,30 @@ depends=('cuda') | |
source=() | |
sha256sums=() | |
-_cudnnSrcDir="" | |
+_cudnnSrcDir="$(realpath .)" |
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
exec qemu-system-x86_64 \ | |
-name OmniOS \ | |
-cpu host,-x2apic -enable-kvm \ | |
-m 4G \ | |
-net nic -net user \ | |
-cdrom omnios.iso \ | |
omnios.qcow2 | |
"$@" |
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
=> {"shipping_address"=> | |
{"recipient_name"=>"Cool Buyer", | |
"line1"=>"3rd st", | |
"line2"=>"cool", | |
"city"=>"San Jose", | |
"state"=>"CA", | |
"postal_code"=>"95112", | |
"country_code"=>"US"}, | |
"id"=>"I-PE7JWXKGVN0R", | |
"plan"=> |
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
From: /home/epi/.gem/ruby/2.3.0/gems/paypal-sdk-rest-1.4.7/lib/paypal-sdk/rest/data_types.rb @ line 1300: | |
Owner: #<Class:PayPal::SDK::REST::DataTypes::WebhookEvent> | |
Visibility: public | |
Number of lines: 9 | |
def verify_signature(transmission_id, timestamp, webhook_id, event_body, cert, actual_sig_encoded, algo) | |
expected_sig = get_expected_sig(transmission_id, timestamp, webhook_id, event_body) | |
digest = OpenSSL::Digest.new(algo) | |
digest.update(expected_sig) |
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 PasswordReset < ActiveRecord::Base | |
belongs_to :user | |
before_save :generate_random_token | |
def expired? | |
created_at < 3.days.ago | |
end |
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
#include <linux/types.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define iters (__u64)5000 | |
#define chunk_size (__u64)65535 | |
#define CRCPOLY_LE 0xedb88320 |
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
15:31:20 epitron | i was wondering if it would be simpler to do all the recurring stuff ourselves | |
15:31:36 epitron | then we wouldn't have to deal with synching anything | |
15:31:36 lacuna | jude told me yesterday that they process 28 billion in payments a year | |
15:31:43 lacuna | i mean, is syncing that hard? | |
15:31:50 epitron | it's just annoying | |
15:31:57 lacuna | I think our strategy of putting it all on stripe is going well | |
15:32:02 epitron | you have to worry about all these corner cases | |
15:32:08 lacuna | I'm hesitant to rip something out of there if we don't have to | |
15:32:14 lacuna | okay so let's go through the cases | |
15:32:29 lacuna | becaues to me, I like that doing it all on stripe puts it all in one place |
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
int font_style = GLUT_BITMAP_HELVETICA_12; | |
void setfont(char* name, int size) | |
{ | |
font_style = GLUT_BITMAP_HELVETICA_10; | |
if (strcmp(name, "helvetica") == 0) { | |
if (size == 12) | |
font_style = GLUT_BITMAP_HELVETICA_12; | |
else if (size == 18) | |
font_style = GLUT_BITMAP_HELVETICA_18; |
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
public class List { | |
/**************************************************/ | |
class Node { | |
String data; | |
Node next; | |
public Node(String d, Node n) { data = d; next = n; } | |
public Node(String d) { this(d, null); } |