I hereby claim:
- I am mmichelli on github.
- I am mmichelli (https://keybase.io/mmichelli) on keybase.
- I have a public key whose fingerprint is 4606 418B 5CF5 6CDD 0898 2011 E181 38B7 4FE2 3B02
To claim this, I am signing this object:
import React from 'react'; | |
import ListItem from '@material-ui/core/ListItem'; | |
import ListItemIcon from '@material-ui/core/ListItemIcon'; | |
import ListItemText from '@material-ui/core/ListItemText'; | |
import ListSubheader from '@material-ui/core/ListSubheader'; | |
import DashboardIcon from '@material-ui/icons/Dashboard'; | |
import { Button } from '@material-ui/core'; | |
import { graphql, compose } from "react-apollo"; |
I hereby claim:
To claim this, I am signing this object:
(function( factory ) { | |
if ( typeof define === "function" && define.amd ) { | |
define( ["jquery", "../jquery.validate"], factory ); | |
} else { | |
factory( jQuery ); | |
} | |
}(function( $ ) { |
(define-derived-mode silverstripe-mode html-mode "Silverstripe" | |
(font-lock-add-keywords | |
nil | |
'( | |
("\\(<% \\| %>\\)" 1 font-lock-keyword-face) | |
("\\(\\(if\\|else\\|control\\|cacheblock\\|Level\\|end_[a-zA-Z1-9_\.]*\\|include\\)+\\)\\>" 1 font-lock-function-name-face) | |
("\\(.\\(Title\\|NexPageLink\\|Link\\|RelativeLink\\|ChildrenOf\\|Page\\|Level\\|Menu\\|Section2\\|LoginForm\\|SilverStripeNavigator\\|PageComments\\|Now\\|LinkTo\\|AbsoluteLink\\|CurrentMember\\|PastVisitor\\|PastMember\\|XML_val\\|RAW_val\\|SQL_val\\|JS_val\\|ATT_val\\|First\\|Last\\|FirstLast\\|MiddleString\\|Middle\\|Even\\|Odd\\|EvenOdd\\|Pos\\|TotalItems\\|BaseHref\\|Debug\\|CurrentPage\\|Top\\)+\\)\\>" 1 font-lock-constant-face) | |
("\\(.\\(ID\\|ClassName\\|Created\\|LastEdited\\|URLSegment\\|Title\\|MenuTitle\\|Content\\|MetaTitle\\|MetaDescription\\|MetaKeywords\\|ShowInMenus\\|ShowInSearch\\|HomepageForDomain\\|ProvideComments\\|Sort\\|LegacyURL\\|HasBrokenFile\\|HasBrokenLink\\|Status\\|ReportClass\\|ParentID\\|V |
<?php | |
class AccessoriesWidget extends Widget { | |
static $db = array( | |
"Title" => "Varchar", | |
); | |
static $many_many = array ( |
var http = require('http'); | |
var google = http.createClient(80, 'www.nrk.no'); | |
var request = google.request('GET', '/contentfile/web/files/sport/json/medaljer_skivm_2011.js', {'host': 'www.nrk.no'}); | |
request.end(); | |
var out = ''; | |
request.on('response', function (response) { | |
response.setEncoding('utf-8'); | |
response.on('data', function (chunk) { |
SELECT ClassName, "SiteTree_Live".ID, ParentID, Title, MenuTitle, URLSegment, Content, LastEdited, Created, '' AS Filename, _utf8'' AS Name, MATCH (Title, MenuTitle, Content, MetaTitle, MetaDescription, MetaKeywords) AGAINST ('loremøasd') + MATCH (Title, MenuTitle, Content, MetaTitle, MetaDescription, MetaKeywords) AGAINST ('loremøasd') AS Relevance, CanViewType FROM "SiteTree_Live" WHERE ( | |
MATCH (Title, MenuTitle, Content, MetaTitle, MetaDescription, MetaKeywords) AGAINST ('loremøasd*' IN BOOLEAN MODE) | |
+ MATCH (Title, MenuTitle, Content, MetaTitle, MetaDescription, MetaKeywords) AGAINST ('loremøasd*' IN BOOLEAN MODE) | |
AND ShowInSearch <> 0) UNION SELECT ClassName, "File".ID, _utf8'' AS ParentID, Title, _utf8'' AS MenuTitle, _utf8'' AS URLSegment, Content, LastEdited, Created, Filename, Name, MATCH (Filename, Title, Content) AGAINST ('loremøasd') AS Relevance, NULL AS CanViewType FROM "File" WHERE (MATCH (Filename, Title, Content) AGAINST ('loremøasd*' IN BOOLEAN MODE) A |
UPDATE `SiteTree` SET `Locale`='en_GB' ; |
require 'rubygems' | |
require "find" # to use command-line "find" to go through subdirectories for files | |
require 'RMagick' | |
@in_dir = ARGV[0] | |
Find.find(@in_dir) do |path| | |
if !FileTest.directory?(path) && (path[-4,4] == ".jpg") |
function LatestNews($num=2) { | |
$news = $this->theNews(); | |
return ($news) ? DataObject::get("Page", "ParentID = $news->ID", "Sort DESC", "", $num) : false; | |
} | |