Skip to content

Instantly share code, notes, and snippets.

diff --git a/5e4722833f9af35256c30653dca0d45bba4abfc6:mix.exs b/961e64ce26cc2af8b07dabed6bb93dde7d4d8367:mix.exs
index ebb094c..adc7c1d 100644
--- a/5e4722833f9af35256c30653dca0d45bba4abfc6:mix.exs
+++ b/961e64ce26cc2af8b07dabed6bb93dde7d4d8367:mix.exs
@@ -15,7 +15,7 @@ defmodule Todos.Mixfile do
# Type `mix help compile.app` for more information
def application do
[mod: {Todos, []},
- applications: [:phoenix, :cowboy, :logger]]
+ applications: [:phoenix, :cowboy, :logger, :ecto, :postgrex]]
-module(general_lib).
-compile(export_all).
-define(SECRET, "SOMETEXTHERE").
time_as_string() ->
{MegaSeconds, Seconds, MicroSeconds} = erlang:now(),
integer_to_list(MegaSeconds) ++ integer_to_list(Seconds) ++ integer_to_list(MicroSeconds).
time_as_seconds() ->
success: function(data){
setTimeout(function(){
for (var i = 0; i < data.objects.length; i++){
var t = new Todo({
id: data.objects[i].id,
text: data.objects[i].text,
done: data.objects[i].done,
order: data.objects[i].order
});
if(typeof(Todos.get(t.id)) != "object"){
success: function(data){
setTimeout(function(){
for (var i = 0; i < data.objects.length; i++){
var t = new Todo({
id: data.objects[i].id,
text: data.objects[i].text,
done: data.objects[i].done,
order: data.objects[i].order
});
if(typeof(Todos.get(t.id)) != "object"){
<iframe
src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.meet-meme.com%2Fcards%2Fholiday%2F&amp;send=false&amp;layout=box_count&amp;width=50&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;appId= 126758570707850"
scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:70px;" allowTransparency="true"></iframe>
lists:foreach(fun([Meeting]) ->
lists:foreach(fun([Participant])) ->
spawn(twilio,make_call, ["4143759009", Participant:phone_number(), [{"Url", "http://3anc.localtunnel.com/twilio/call/id/" ++ Meeting:id()}]]),
end, Meeting:participants())
end, Meetings).
@matthusby
matthusby / gist:1169217
Created August 24, 2011 20:59
MyView.j
@implementation MyView : CPView
{
CALayer _rootLayer;
}
- (id)initWithFrame:(CGRect)aFrame
{
self = [super initWithFrame:aFrame];
if (self)
{
@matthusby
matthusby / gist:1169211
Created August 24, 2011 20:58
AppController.j
/*
* AppController.j
* animationTest
*
* Created by Matthusby on June 23, 2011.
*/
@import <Foundation/CPObject.j>
@import <AppKit/AppKit.j>
@import "MyView.j"
perl cloc-1.53.pl --progress=100 ~/Dropbox/
29731 text files.
16843 unique files.
60355 files ignored.
http://cloc.sourceforge.net v 1.53 T=163.0 s (74.2 files/s, 20218.9 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
PHP 4011 90440 245040 726947
perl cloc-1.53.pl ~/Dropbox/NetBeansProjects/fangiftshop
1377 text files.
1305 unique files.
718 files ignored.
http://cloc.sourceforge.net v 1.53 T=5.0 s (150.8 files/s, 42064.2 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
PHP 486 13638 26543 75465