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 com.wellbaked.powerpanel; | |
// Android SDK Imports | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.widget.TextView; | |
// Java SDK Imports | |
import java.util.HashMap; |
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 Chat() { | |
this.notifier = new Notifier(); | |
this.tab_status = new TabStatus(); | |
this.join(); | |
this.open(); | |
this.leave(); | |
}; | |
Chat.prototype.update = function(data, chat) { | |
if(data.hasOwnProperty("server")) { |
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
module SoftDelete | |
def destroy | |
unless self.respond_to? :deleted_at | |
raise MissingMigrationException | |
end | |
self.update_attribute :deleted_at, Time.now | |
run_callbacks :destroy if self.is_a?(Performer) |
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
var request = $.ajax({ | |
type: 'POST', | |
url: url, | |
data: data, | |
dataType: "html" | |
}) | |
request.success(function(data) { | |
// yu promised mofo | |
}); |
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 ( | |
"bufio" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |
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
-- Get Max ID from table | |
SELECT MAX(id) FROM table; | |
-- Get Next ID from table | |
SELECT nextval('table_id_seq'); | |
-- Set Next ID Value to MAX ID | |
SELECT setval('table_id_seq', (SELECT MAX(id) FROM table)); |
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
[ | |
{ | |
title: "Don Toliver - Thee Love Sick Tour 2023 with Pierre Bourne", | |
begin_time: "2023-08-11T19:00:00-05:00", | |
venue_title: "Moody Amphitheater at Waterloo Park", | |
status: "active", | |
entries: 10, | |
units: 50 | |
} | |
] |